Importing a Python SDK into a Python Environment
- On the HUAWEI CLOUD SDKs page, download and decompress the Content Moderation Python SDK. The structure and content of the decompressed package are described as follows:
├──python │ ├── data # Sample image │ ├── moderation_sdk # Content Moderation SDK code │ │ ├── ais.py # Constant configuration of Content Moderation │ │ ├── moderation_image.py # Image Moderation SDK code │ │ ├── signer.py │ ├── moderation_image_aksk_demo.py # Image Moderation AK/SK demo │ ├── moderation_image_token_demo.py # Image Moderation token demo
2. On the PyCharm page, choose , select the path for storing the decompressed SDK package, and import the SDK package. See Figure 1.
Last Article: Preparing a Python Development Environment
Next Article: SDK Calling Example

Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.