Registry / ai-ml / sap-ai-sdk-base

sap-ai-sdk-base

JSON →
library3.4.0pypypiunverified

Core base client for SAP Cloud SDK for AI (Python), providing authentication, HTTP client, and configuration for interacting with SAP AI Core services. Current version 3.4.0, requires Python >=3.9. Released irregularly with semantic versioning.

pip install sap-ai-sdk-base
INSTALL
IMPORT
SIG · SAP-AI-SDK-BASE
S
sap-ai-sdk-base
ai-mlpythonv3.4.0
Install
2.7s avg
Import
Disk
22MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.4.0 · 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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 23.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 24MB
22MB installed
● package 22MB
Code
Verified usage

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

BaseClient
from ai_api_client_sdk import BaseClient
from ai_api_client_sdk import BaseClient

Initialize BaseClient with an AICoreDestination. Set environment variables AICORE_BASE_URL, AICORE_CLIENT_ID, AICORE_CLIENT_SECRET, AICORE_AUTH_URL.

from sap_ai_sdk.base import BaseClient, AICoreDestination import os dest = AICoreDestination( base_url=os.environ.get('AICORE_BASE_URL', ''), client_id=os.environ.get('AICORE_CLIENT_ID', ''), client_secret=os.environ.get('AICORE_CLIENT_SECRET', ''), auth_url=os.environ.get('AICORE_AUTH_URL', ''), resource_group=os.environ.get('AICORE_RESOURCE_GROUP', 'default') ) client = BaseClient(destination=dest) print(client.base_url)
Debug
Known issues
breakingv3.x removed the sync HTTP client; only async HTTPX client is used. All calls are async even if not documented.
fix
Use async/await for all calls. Replace requests-based code with BaseClient.get/post/etc (async).
affects: >=3.0.0
breakingv3.x renamed 'BaseDestination' to 'AICoreDestination' and changed its constructor parameters.
fix
Use AICoreDestination with new keyword arguments: base_url, client_id, client_secret, auth_url, resource_group.
affects: >=3.0.0
deprecatedPassing 'destination' as a string is deprecated in v3.3+; use AICoreDestination object.
fix
Instantiate AICoreDestination and pass it as destination parameter.
affects: >=3.3.0, <4.0.0
gotchaEnvironment variable 'AICORE_RESOURCE_GROUP' defaults to 'default'; if omitted, service may fail when resource group is required.
fix
Explicitly set AICORE_RESOURCE_GROUP unless your AI Core instance uses the 'default' group.
affects: all
Upgrade
Version history
3.4.0latest on PyPI · released Mar 30, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources
sap-ai-sdk-base — pip install sap-ai-sdk-base · libregistry