Registry / ai-ml / sap-ai-sdk-core

sap-ai-sdk-core

JSON →
library3.3.0pypypiunverified

Core library for the SAP Cloud SDK for AI (Python), providing client and base classes for interacting with SAP AI Core services. Current version: 3.3.0, requires Python >=3.9. Released approximately quarterly.

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

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

AICoreClient
from ai_core_sdk import AICoreClient
from ai_core_sdk import AICoreClient

Initializes the AICoreClient using environment variables for authentication and default API version V4.

import os from sap_ai_sdk_core import AICoreClient, AIAPIVersion client = AICoreClient( base_url=os.environ.get("AI_CORE_BASE_URL", ""), auth_url=os.environ.get("AI_CORE_AUTH_URL", ""), client_id=os.environ.get("AI_CORE_CLIENT_ID", ""), client_secret=os.environ.get("AI_CORE_CLIENT_SECRET", ""), resource_group=os.environ.get("AI_CORE_RESOURCE_GROUP", "default"), api_version=AIAPIVersion.V4 ) print("Client created")
Debug
Known issues
breakingIn version 2.x, the client was instantiated directly with credentials. In 3.x, the constructor parameters changed: `base_url` is now required instead of `ai_core_url`.
fix
Update instantiation: pass `base_url` (required) and remove old `ai_core_url`.
affects: >=3.0.0
deprecatedThe `AICoreClient` constructor parameter `api_version` with `AIAPIVersion.V3` is deprecated and will be removed in a future release.
fix
Use `AIAPIVersion.V4` as the default API version.
affects: <4.0.0
gotchaThe `resource_group` parameter defaults to `"default"` which may not be valid for all SAP AI Core instances. Not providing a valid resource group leads to 403 errors.
fix
Always set `resource_group` to an existing resource group from your AI Core instance (e.g., `os.environ.get("AICORE_RESOURCE_GROUP", "default")`).
affects: >=1.0.0
Upgrade
Version history
3.3.0latest on PyPI · released Mar 30, 2026
Audit
Dependencies

No dependency data recorded yet.

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