{"id":27770,"library":"g42cloudsdkcbr","title":"G42 Cloud SDK CBR","description":"G42 Cloud SDK for Cloud Backup and Recovery (CBR) service. Version 0.0.10b0 (beta), supports Python >=2.7. Released irregularly.","status":"active","version":"0.0.10b0","language":"python","source_language":"en","source_url":"https://github.com/g42cloud-sdk/g42cloud-sdk-python","tags":["g42cloud","cloud","backup","sdk","cbr"],"install":[{"cmd":"pip install g42cloudsdkcbr","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Core SDK required for authentication and HTTP handling","package":"g42cloudsdkcore","optional":false}],"imports":[{"note":"CbrClient is located under the v1 submodule.","wrong":"from g42cloudsdkcbr import CbrClient","symbol":"CbrClient","correct":"from g42cloudsdkcbr.v1 import CbrClient"},{"note":"Models are in the v1.model submodule.","wrong":"from g42cloudsdkcbr.model import BackupResp","symbol":"BackupResp","correct":"from g42cloudsdkcbr.v1.model import BackupResp"}],"quickstart":{"code":"from g42cloudsdkcore.auth.credentials import BasicCredentials\nfrom g42cloudsdkcbr.v1 import CbrClient\nfrom g42cloudsdkcbr.v1.region import CbrRegion\n\nak = os.environ.get('G42_AK', '')\nsk = os.environ.get('G42_SK', '')\nproject_id = os.environ.get('G42_PROJECT_ID', '')\n\ncredentials = BasicCredentials(ak, sk, project_id)\nclient = CbrClient.new_builder()\\\n    .with_credentials(credentials)\\\n    .with_region(CbrRegion.value_of(\"ap-southeast-1\"))\\\n    .build()\n\nprint(client.list_protectable([]))","lang":"python","description":"Basic setup with CbrClient."},"warnings":[{"fix":"Upgrade to Python 3.6+.","message":"Python 2.7 support is deprecated and will be removed in future versions.","severity":"deprecated","affected_versions":">=0.0.1b0, <=0.0.10b0"},{"fix":"Use CbrRegion.value_of('ap-southeast-1') for G42 region.","message":"All endpoints and region codes differ from Huawei Cloud; use G42-specific values.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin exact version in requirements.","message":"The SDK is in beta; breaking changes may occur between minor versions without notice.","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":"Use 'from g42cloudsdkcbr.v1 import CbrClient'.","cause":"Incorrect import path; CbrClient is in v1 submodule.","error":"AttributeError: module 'g42cloudsdkcbr' has no attribute 'CbrClient'"},{"fix":"Use CbrRegion.value_of('ap-southeast-1') or another valid G42 region.","cause":"Using a non-G42 region string or incorrect region ID.","error":"KeyError: 'region'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}