{"id":28349,"library":"tencentcloud-sdk-python-organization","title":"Tencent Cloud Organization SDK","description":"Tencent Cloud Organization SDK for Python, version 3.1.88. Provides access to Tencent Cloud Organization service APIs (e.g., Organization, Organizations). Part of the tencentcloud-sdk-python family. Released periodically alongside the main SDK.","status":"active","version":"3.1.88","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","organization","sdk","cloud"],"install":[{"cmd":"pip install tencentcloud-sdk-python-organization","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core SDK providing base client, credential, and HTTP logic.","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"","wrong":"","symbol":"OrganizationClient","correct":"from tencentcloud.organization.v20210331 import organization_client"},{"note":"","wrong":"","symbol":"CreateOrganizationRequest","correct":"from tencentcloud.organization.v20210331 import models"}],"quickstart":{"code":"from tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.organization.v20210331 import organization_client, models\n\n# Replace with your credentials\ndef create_organization():\n    try:\n        cred = credential.Credential(\n            secret_id=os.environ.get('TENCENTCLOUD_SECRET_ID', ''),\n            secret_key=os.environ.get('TENCENTCLOUD_SECRET_KEY', '')\n        )\n        client = organization_client.OrganizationClient(cred, \"ap-guangzhou\")\n        req = models.CreateOrganizationRequest()\n        resp = client.CreateOrganization(req)\n        print(resp.to_json_string())\n    except TencentCloudSDKException as err:\n        print(err)\n\nif __name__ == '__main__':\n    import os\n    create_organization()","lang":"python","description":"Minimal example to call CreateOrganization API."},"warnings":[{"fix":"Install both: pip install tencentcloud-sdk-python-common tencentcloud-sdk-python-organization","message":"The package is only one of many service-specific packages. You must also install tencentcloud-sdk-python-common separately or as a dependency—pip does not pull it automatically if you install only tencentcloud-sdk-python-organization.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to latest version and follow the 3.x import style.","message":"Older SDK versions (pre-3.0) used a different import structure. The 3.x branch uses tencentcloud.organization.v20210331 for the Organization API.","severity":"deprecated","affected_versions":"<3.0.0"},{"fix":"Always provide a valid region (e.g., 'ap-guangzhou'). Check Tencent Cloud documentation for correct region list.","message":"Region parameter is mandatory in client initialization even for global services. Using incorrect region may cause product not found errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'3.1.88':12 'access':14 'alongsid':34 'api':20 'cloud':2,6,17,41 'e.g':21 'famili':31 'main':36 'organ':3,7,18,22,23,39 'part':24 'period':33 'provid':13 'python':10,30 'releas':32 'sdk':4,8,29,37,40 'servic':19 'tencent':1,5,16 'tencentcloud':28,38 'tencentcloud-sdk-python':27 'version':11","created_at":"2026-05-09T05:55:02.903451+00:00","updated_at":"2026-05-09T05:55:02.903451+00:00","problems":[{"fix":"pip install tencentcloud-sdk-python-common","cause":"The common SDK package (tencentcloud-sdk-python-common) is missing.","error":"ModuleNotFoundError: No module named 'tencentcloud'"},{"fix":"Ensure you have the correct package: pip install tencentcloud-sdk-python-organization. Use from tencentcloud.organization.v20210331 import organization_client and then organization_client.OrganizationClient","cause":"Wrong package version or the API version module doesn't exist.","error":"ImportError: cannot import name 'OrganizationClient' from 'tencentcloud.organization.v20210331'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://www.tencentcloud.com","github":"https://github.com/TencentCloud/tencentcloud-sdk-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/tencentcloud-sdk-python-organization/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["aws"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}