SDK installation and use
This topic describes how to install and use the AIVPP software development kit (SDK).
SDK quick start
Go to the brainindustrial SDK Center page on the OpenAPI Portal.
SDK installation
Select an SDK based on the programming language of your project:
You have installed the Alibaba Cloud Java SDK. Refer to the Java SDK usage example later in this topic for instructions for developers.
Download the Java SDK.
To use Maven, add the following dependencies to the pom.xml file of your project:
<dependency> <groupId>com.aliyun</groupId> <artifactId>credentials-java</artifactId> -- LATEST or 1.0.2 -- <version>LATEST</version> </dependency> <dependency> <groupId>com.aliyun</groupId> <artifactId>brain_industrial20200920</artifactId> <version>2.1.2</version> </dependency> -- To use Java concurrency with AsyncClient, import the following package. <dependency> <groupId>com.aliyun</groupId> <artifactId>alibabacloud-brain_industrial20200920</artifactId> <version>2.0.4</version> </dependency>
Now that the Alibaba Cloud Python SDK is installed, you can refer to the Python SDK usage example in this topic for development instructions.
Download the Python SDK.
To install using pip, run the following commands:
pip install alibabacloud_brain_industrial20200920==2.1.2 pip install alibabacloud_sts20150401==1.1.6
SDK use
You can use the SDK to call API services according to their definitions. The following are specific use cases:
Create a power prediction task from a file URL: Java SDK usage example, Python SDK usage example
Create a load prediction task from a file URL: Java SDK usage example, Python SDK usage example
Electricity load prediction: Java SDK usage example, Python SDK usage example
New energy power prediction: Java SDK usage example, Python SDK usage example
Stored energy operation optimization policy: Java SDK usage example, Python SDK usage example
Querying results: Java SDK usage example, Python SDK usage example
Click a link to view the usage example for the corresponding SDK.