{"id":28363,"library":"tencentcloud-sdk-python-tbp","title":"Tencent Cloud TBP SDK for Python","description":"Unofficial Tencent Cloud TBP (Task/Bot Platform) SDK for Python, version 3.0.1459. Provides client classes for interacting with TBP services. Released irregularly alongside the main tencentcloud-sdk-python. The package is auto-generated, so breaking changes can occur on minor version bumps due to API additions.","status":"active","version":"3.0.1459","language":"python","source_language":"en","source_url":"https://github.com/TencentCloud/tencentcloud-sdk-python","tags":["tencentcloud","tbp","chatbot","sdk","nlu"],"install":[{"cmd":"pip install tencentcloud-sdk-python-tbp","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for all Tencent Cloud SDK usage.","package":"tencentcloud-sdk-python-common","optional":false}],"imports":[{"note":"Version 20190627 is the current API version; older versions may not exist or be deprecated.","wrong":"from tencentcloud.tbp.v20190311 import tbp_client","symbol":"TbpClient","correct":"from tencentcloud.tbp.v20190627 import tbp_client"}],"quickstart":{"code":"import os\nfrom tencentcloud.common import credential\nfrom tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException\nfrom tencentcloud.tbp.v20190627 import tbp_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 = tbp_client.TbpClient(cred, \"ap-guangzhou\")\nreq = models.TextProcessRequest()\nreq.BotId = \"your_bot_id\"\nreq.BotEnv = \"dev\"\nreq.TerminalId = \"test_user\"\nreq.InputText = \"Hello\"\ntry:\n    resp = client.TextProcess(req)\n    print(resp.to_json_string())\nexcept TencentCloudSDKException as e:\n    print(e)","lang":"python","description":"Initialize client and call TextProcess."},"warnings":[{"fix":"Pin to exact version in requirements.txt: tencentcloud-sdk-python-tbp==3.0.1459","message":"SDK is auto-generated: any minor version bump (e.g., 3.0.1458 → 3.0.1459) can introduce breaking changes. Always pin your dependency.","severity":"gotcha","affected_versions":"all"},{"fix":"Use the correct import shown above.","message":"The package name includes 'tbp' but the import path uses 'tencentcloud.tbp.v20190627'. Mismatch can cause confusion.","severity":"gotcha","affected_versions":"all"},{"fix":"Update import to v20190627 and review model changes.","message":"Older API version modules (e.g., v20190311) are deprecated. Using them will result in import errors or outdated response structures.","severity":"deprecated","affected_versions":">=3.0.1000"}],"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":"Missing base package tencentcloud-sdk-python-common.","error":"ModuleNotFoundError: No module named 'tencentcloud'"},{"fix":"Upgrade to the latest package: pip install --upgrade tencentcloud-sdk-python-tbp","cause":"Installed an older version that does not include v20190627.","error":"AttributeError: module 'tencentcloud.tbp' has no attribute 'v20190627'"},{"fix":"Verify BotId and BotEnv in the Tencent Cloud console.","cause":"Invalid BotId or BotEnv; check your TBP bot configuration.","error":"tencentcloud.common.exception.TencentCloudSDKException: [InvalidParameter] The specified BotId does not exist."}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}