Obtaining and Installing the Aura DataFrame SDK
You can install the Aura DataFrame SDK with a single pip command. The installation process automatically downloads the third-party libraries required by the SDK. This section describes how to obtain and install the SDK.
Prerequisites
Python 3.11 has been installed. For details, see Python Environment Configuration.
Obtaining the SDK
Download the SDK file. You are advised to download the .sha256 file as well, which can be used to verify the integrity of the SDK package. For details about the verification method, see Verifying the Integrity of the SDK Package.
| SDK File | Description | Download URL |
|---|---|---|
| huawei_aura_connectorapi-x.x.x-py3-none-any.whl | Supports executing SQL queries via native APIs or standard database interfaces (PEP249). | |
| huawei_aura_frame-x.x.x.x-py3-none-any.whl | Based on the Ibis framework, supports writing data processing jobs using the Dataframe/Dataset-like syntax and automatically converting them to SQL for execution on the Aura engine. |
Verifying the Integrity of the SDK Package
When downloading the SDK installation package, you also need to download the .sha256 file to verify the integrity of the SDK package. This section outlines the steps to use the .sha256 file for verifying the integrity of the SDK package.
- Querying the SHA-256 hash value of the SDK installation package
- On Windows
- Search for cmd in the Start menu to open the command window.
- Run cd to go to the directory where the SDK installation package is saved.
For example, if the SDK installation package is saved in the SDK folder on drive D, enter cd D:\SDK.
- Run the following command:
certutil -hashfile <SDK installation package name> SHA-256
Replace <SDK installation package name> with the actual SDK installation package name, for example, certutil -hashfile huawei_aura_connectorapi-x.x.x-py3-none-any.whl SHA-256.
- After the command is executed, the command prompt will display the SHA-256 hash value of the SDK installation package.
- On Linux
- Run cd to go to the directory where the SDK installation package is saved.
For example, if the SDK installation package is saved in the SDK folder in the home directory, enter cd ~/SDK.
- Enter the query command:
sha256sum <SDK installation package name>
Replace <SDK installation package name> with the actual SDK installation package name, for example, sha256sum sdk - huawei_aura_connectorapi-x.x.x-py3-none-any.whl.
- After the command is executed, the terminal will display the SHA-256 hash value of the SDK installation package.
- Run cd to go to the directory where the SDK installation package is saved.
- On Windows
- Comparing hash values
- Open the downloaded .sha256 file using the text editor.
- Find the SHA-256 hash value of the SDK installation package in the .sha256 file.
It is typically a long string, for example, a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6xxxxxxxxxxxxxxxxxxxxxxxx.
- Compare the SHA-256 hash value of the SDK installation package obtained in 1. Querying the SHA-256 hash value of the SDK installation package with the hash value in the .sha256 file.
- If the two hash values are identical, the SDK installation package was not altered during the download process and the file is intact.
- If the hash values are inconsistent, an error occurred during the download of the SDK installation package or that the file was maliciously modified.
In this case, you are advised to download the SDK installation package and its corresponding .sha256 file again and then verify the package.
Installing the SDK
- Open the CLI and go to the directory where the SDK file is stored.
- Run the following command to install the SDK. During the installation, the third-party dependencies are automatically downloaded.
pip install huawei_aura_connectorapi-x.x.x-py3-none-any.whl pip install huawei_aura_frame-x.x.x.x-py3-none-any.whl
x.x.x.x and x.x.x indicate the version numbers. Replace them with the actual ones.
- Run the following command to check the SDK version:
python -c "import aura_frame; print(aura_frame.__version__)"
If the output similar to the following, the SDK is successfully installed.3.9.0.1
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot