{"id":28371,"library":"tencentcloud-sdk-python-tione","title":"Tencent Cloud Tione SDK for Python","description":"Official Python SDK for Tencent Cloud Tione (AI Platform), providing APIs for training, model management, and inference. Current version 3.1.88. Released on PyPI with regular updates aligned to Tencent Cloud API changes.","status":"active","version":"3.1.88","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencent-cloud","tione","ai-platform","sdk"],"install":[{"cmd":"pip install tencentcloud-sdk-python-tione","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"Required for authentication and base client.","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"Wrong path: TioneClient is versioned under v20211111 module.","wrong":"from tencentcloud.tione import TioneClient","symbol":"TioneClient","correct":"from tencentcloud.tione.v20211111 import tione_client"},{"note":"Models are also under versioned package.","wrong":"from tencentcloud.tione import models","symbol":"models","correct":"from tencentcloud.tione.v20211111 import models"}],"quickstart":{"code":"import os\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.tione.v20211111 import tione_client, models\n\nsecret_id = os.environ.get('TENCENTCLOUD_SECRET_ID', '')\nsecret_key = os.environ.get('TENCENTCLOUD_SECRET_KEY', '')\ncred = credential.Credential(secret_id, secret_key)\nclient = tione_client.TioneClient(cred, \"ap-guangzhou\")\n\ntry:\n    req = models.CreateNotebookRequest()\n    req.NotebookName = \"test-notebook\"\n    req.ChargeType = \"POSTPAID_BY_HOUR\"\n    resp = client.CreateNotebook(req)\n    print(resp.RequestId)\nexcept TencentCloudSDKException as e:\n    print(e)","lang":"python","description":"Initialize client and create a notebook instance with default region."},"warnings":[{"fix":"Always use 'from tencentcloud.tione.v20211111 import ...'","message":"Version v20211111 is the only supported API version; older imports may fail silently.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Check region availability in Tencent Cloud console and use lower-hyphen format.","message":"Region must be specified; validation fails if omitted or misspelled (e.g. 'ap-hongkong' vs 'ap-hongkong').","severity":"gotcha","affected_versions":"all"},{"fix":"Use the versioned import path from tencentcloud.tione.v20211111.tione_client","message":"The old 'from tencentcloud.tione.tione_client import TioneClient' path was removed in v3.1.0+.","severity":"deprecated","affected_versions":">=3.1.0"}],"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 and use 'from tencentcloud.tione.v20211111 import ...'","cause":"Missing package or wrong import; requires tencentcloud-sdk-python-common and correct versioned subpackage.","error":"ModuleNotFoundError: No module named 'tencentcloud.tione.v20211111'"},{"fix":"Ensure TENCENTCLOUD_SECRET_ID and TENCENTCLOUD_SECRET_KEY are set correctly.","cause":"Invalid or missing SecretId/SecretKey in environment or credential object.","error":"TencentCloudSDKException: [TencentCloudSDKException] code: AuthFailure.SecretIdNotFound"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}