Help Center> Content Moderation> SDK Reference> Using the Python SDK> Importing a Python SDK into a Python Environment

Importing a Python SDK into a Python Environment

  1. 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 File > Open File or Project, select the path for storing the decompressed SDK package, and import the SDK package. See Figure 1.
    Figure 1 Project directory after importing the SDK