{"id":46307,"library":"sap-cloud-sdk","title":"SAP Cloud SDK for Python","description":"The SAP Cloud SDK for Python provides libraries and tools for building cloud-native applications on the SAP Business Technology Platform. It includes modules for destination lookups, RFC/BAPI calls, OData and OpenAPI consumption, and integration with SAP AI Core and Workflow services. Current version 0.23.1 requires Python >=3.11. The project follows a monthly release cadence and is under active development, with frequent API changes.","status":"active","version":"0.23.1","language":"python","source_language":"en","source_url":"https://github.com/SAP/cloud-sdk-python","tags":["sap","cloud-sdk","odata","bapi","rfc","bpt"],"install":[{"cmd":"pip install sap-cloud-sdk","lang":"bash","label":"Install core library"},{"cmd":"pip install sap-cloud-sdk[odata,ai_core,workflow]","lang":"bash","label":"Install with extra features"}],"dependencies":[{"reason":"Required for Azure-based authentication flows (auth type 'OAuth2ClientCredentials' with Azure AD)","package":"azure-identity","optional":true},{"reason":"Required for AWS Secrets Manager based credential retrieval","package":"boto3","optional":true},{"reason":"Required for Google Cloud Storage based secret stores","package":"gcsfs","optional":true}],"imports":[{"wrong":"from sap_cloud_sdk import SAPCloudSDKClient","symbol":"SAPCloudSDKClient","correct":"from sap_cloud_sdk import SAPCloudSDKClient"}],"quickstart":{"code":"import os\nfrom sap_cloud_sdk import SAPCloudSDKClient, Destination\n\ndestination = Destination.from_env(\n    name='MY_DESTINATION',\n    # Optionally override the destination's URL:\n    # url='https://my-system.example.com/sap/opu/odata/sap/ZMY_SRV'\n)\n\nclient = SAPCloudSDKClient(destination=destination)\n\n# Execute an OData query\nresponse = client.execute(\n    method='GET',\n    path='/sap/opu/odata/sap/ZMY_SRV/EntitySet'\n)\nprint(response.json())\n","lang":"python","description":"Basic example: create a destination from environment variable 'MY_DESTINATION', instantiate the client, and perform a GET request via OData."},"warnings":[{"fix":"Update imports: replace 'from sap_cloud_sdk.v4 import ...' with 'from sap_cloud_sdk import ...'","message":"In version >=0.23.0, the package was renamed from 'sap-cloud-sdk' (hyphen) to 'sap-cloud-sdk' (same name, but internal module structure changed). Old imports like 'from sap_cloud_sdk.v4 import ...' no longer work. All public APIs are now under 'sap_cloud_sdk' top-level.","severity":"breaking","affected_versions":">=0.23.0"},{"fix":"Use 'Destination.from_env()' or 'Destination.from_dict()' to build a destination, then pass to client.","message":"The 'SAPCloudSDKClient' constructor no longer accepts a 'credentials' dictionary. You must pass a 'Destination' object or use 'from_credentials()' class method.","severity":"breaking","affected_versions":">=0.21.0"},{"fix":"Use client.odata.get(...) or client.rest.get(...) instead of client.execute(method='GET', path=...)","message":"The 'execute' method's 'path' parameter is deprecated in favor of splitting into separate 'odata' and 'rest' methods. Will be removed in 0.25.0.","severity":"deprecated","affected_versions":">=0.23.0"},{"fix":"Use 'Destination.from_env()' to avoid manual construction errors.","message":"When using destinations with authentication type 'BasicAuthentication', the SDK expects the destination to contain 'username' and 'password' in the 'authTokens' structure. If you manually create destinations via dict, ensure you use the correct field names.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.23.1':51 '3.11':54 'activ':65 'ai':44 'api':69 'applic':21 'bapi':76 'bpt':78 'build':17 'busi':25 'cadenc':61 'call':35 'chang':70 'cloud':2,8,19,73 'cloud-nat':18 'cloud-sdk':72 'consumpt':39 'core':45 'current':49 'destin':32 'develop':66 'follow':57 'frequent':68 'includ':29 'integr':41 'librari':13 'lookup':33 'modul':30 'month':59 'nativ':20 'odata':36,75 'openapi':38 'platform':27 'project':56 'provid':12 'python':5,11,53 'releas':60 'requir':52 'rfc':77 'rfc/bapi':34 'sap':1,7,24,43,71 'sdk':3,9,74 'servic':48 'technolog':26 'tool':15 'version':50 'workflow':47","created_at":"2026-06-07T12:59:17.044009+00:00","updated_at":"2026-06-07T12:59:17.044009+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'SAPCloudSDKClient' from 'sap_cloud_sdk' (/tmp/tmpjkg4fwm3/venv/lib/python3.12/site-packages/sap_cloud_sdk/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}