Registry / ai-ml / ai-core-sdk

ai-core-sdk

JSON →
library2.6.2pypypiunverified

[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.

pip install ai-core-sdk
INSTALL
IMPORT
SIG · AI-CORE-SDK
A
ai-core-sdk
ai-mlpythonv2.6.2
Install
2.6s avg
Import
Disk
24MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 25.1MB
glibc
py 3.103.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())
Debug
Known issues
breakingLibrary is deprecated. New features and bug fixes occur only for critical security issues. Migrate to the new AI SDK (ai-sdk).
fix
Replace with 'ai-sdk' (pip install ai-sdk) and update import paths.
affects: >=2.0.0
deprecatedThe module path changed in v2.0.0. Using 'from ai_core_sdk import AIAPIClient' fails.
fix
Import from ai_core_sdk.ai_core_v2_client instead.
affects: >=2.0.0
gotchaAuthentication requires both base_url and auth_url. Many examples online omit auth_url, causing 401 errors.
fix
Always pass auth_url when using API key authentication.
affects: all
Upgrade
Version history
2.6.2latest on PyPI · released May 14, 2025
Audit
Dependencies
requestsrequiredHTTP client
pyyamlrequiredYAML parsing
boto3optionalAWS interop for object store
azure-storage-bloboptionalAzure interop for object store
Agent activity
53 hits · last 30 days
node
44
OpenAI (training)
2
Anthropic
1
CCBot/2.0 (https://commoncrawl.o
1
Resources
ai-core-sdk — pip install ai-core-sdk · libregistry