Registry / devops / sap-cloud-sdk

sap-cloud-sdk

JSON →
library0.23.1pypypiunverified

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.

pip install sap-cloud-sdk
INSTALL
IMPORT
SIG · SAP-CLOUD-SDK
S
sap-cloud-sdk
devopspythonv0.23.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SAPCloudSDKClient
from sap_cloud_sdk import SAPCloudSDKClient
from sap_cloud_sdk import SAPCloudSDKClient

Basic example: create a destination from environment variable 'MY_DESTINATION', instantiate the client, and perform a GET request via OData.

import os from sap_cloud_sdk import SAPCloudSDKClient, Destination destination = Destination.from_env( name='MY_DESTINATION', # Optionally override the destination's URL: # url='https://my-system.example.com/sap/opu/odata/sap/ZMY_SRV' ) client = SAPCloudSDKClient(destination=destination) # Execute an OData query response = client.execute( method='GET', path='/sap/opu/odata/sap/ZMY_SRV/EntitySet' ) print(response.json())
Debug
Known issues
breakingIn 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.
fix
Update imports: replace 'from sap_cloud_sdk.v4 import ...' with 'from sap_cloud_sdk import ...'
affects: >=0.23.0
breakingThe 'SAPCloudSDKClient' constructor no longer accepts a 'credentials' dictionary. You must pass a 'Destination' object or use 'from_credentials()' class method.
fix
Use 'Destination.from_env()' or 'Destination.from_dict()' to build a destination, then pass to client.
affects: >=0.21.0
deprecatedThe 'execute' method's 'path' parameter is deprecated in favor of splitting into separate 'odata' and 'rest' methods. Will be removed in 0.25.0.
fix
Use client.odata.get(...) or client.rest.get(...) instead of client.execute(method='GET', path=...)
affects: >=0.23.0
gotchaWhen 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.
fix
Use 'Destination.from_env()' to avoid manual construction errors.
affects: all
Upgrade
Version history
0.23.1latest on PyPI · released Jun 3, 2026
Audit
Dependencies
azure-identityoptionalRequired for Azure-based authentication flows (auth type 'OAuth2ClientCredentials' with Azure AD)
boto3optionalRequired for AWS Secrets Manager based credential retrieval
gcsfsoptionalRequired for Google Cloud Storage based secret stores
Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

sap-cloud-sdk — pip install sap-cloud-sdk · libregistry