[DEPRECATED] Official SAP AI Core SDK for Python (version 2.6.2, requires Python >=3.9). This library provides programmatic access to SAP AI Core services for training, deployment, and inference. It is in maintenance mode and has been superseded by the AI SDK (ai-sdk). Users are advised to migrate away.
Install & Compatibility
Where this runs
tested against v2.6.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 25.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.6s · import 0.000s · 26MB
24MB installed
● package 24MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AIAPIClient
✓ from ai_core_sdk import AIAPIClient
✗ from ai_core_sdk.ai_core_v2_client import AIAPIClient
Initialize the AIAPIClient and list scenarios.
import os
from ai_core_sdk.ai_core_v2_client import AIAPIClient
# Use environment variables for authentication
api_key = os.environ.get('AICORE_API_KEY', '')
auth_url = os.environ.get('AICORE_AUTH_URL', '')
base_url = os.environ.get('AICORE_BASE_URL', '')
client = AIAPIClient(
base_url=base_url,
auth_url=auth_url,
api_key=api_key
)
# List scenarios
print(client.scenario.query())
Audit
Dependencies
requestsrequiredHTTP client
pyyamlrequiredYAML parsing
boto3optionalAWS interop for object store
azure-storage-bloboptionalAzure interop for object store