{"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,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","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,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}