{"id":23204,"library":"ai-core-sdk","title":"SAP AI Core SDK","description":"[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.","status":"deprecated","version":"2.6.2","language":"python","source_language":"en","source_url":"https://github.com/SAP/ai-core-sdk","tags":["sap","ai","machine-learning","cloud"],"install":[{"cmd":"pip install ai-core-sdk","lang":"bash","label":"PyPI install"}],"dependencies":[{"reason":"HTTP client","package":"requests","optional":false},{"reason":"YAML parsing","package":"pyyaml","optional":false},{"reason":"AWS interop for object store","package":"boto3","optional":true},{"reason":"Azure interop for object store","package":"azure-storage-blob","optional":true}],"imports":[{"wrong":"from ai_core_sdk.ai_core_v2_client import AIAPIClient","symbol":"AIAPIClient","correct":"from ai_core_sdk import AIAPIClient"}],"quickstart":{"code":"import os\nfrom ai_core_sdk.ai_core_v2_client import AIAPIClient\n\n# Use environment variables for authentication\napi_key = os.environ.get('AICORE_API_KEY', '')\nauth_url = os.environ.get('AICORE_AUTH_URL', '')\nbase_url = os.environ.get('AICORE_BASE_URL', '')\n\nclient = AIAPIClient(\n    base_url=base_url,\n    auth_url=auth_url,\n    api_key=api_key\n)\n\n# List scenarios\nprint(client.scenario.query())","lang":"python","description":"Initialize the AIAPIClient and list scenarios."},"warnings":[{"fix":"Replace with 'ai-sdk' (pip install ai-sdk) and update import paths.","message":"Library is deprecated. New features and bug fixes occur only for critical security issues. Migrate to the new AI SDK (ai-sdk).","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Import from ai_core_sdk.ai_core_v2_client instead.","message":"The module path changed in v2.0.0. Using 'from ai_core_sdk import AIAPIClient' fails.","severity":"deprecated","affected_versions":">=2.0.0"},{"fix":"Always pass auth_url when using API key authentication.","message":"Authentication requires both base_url and auth_url. Many examples online omit auth_url, causing 401 errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.6.2':14 '3.9':17 'access':22 'advis':51 'ai':2,8,25,44,47,56 'ai-sdk':46 'away':54 'cloud':60 'core':3,9,26 'deploy':30 'deprec':5 'infer':32 'learn':59 'librari':19 'machin':58 'machine-learn':57 'mainten':36 'migrat':53 'mode':37 'offici':6 'programmat':21 'provid':20 'python':12,16 'requir':15 'sap':1,7,24,55 'sdk':4,10,45,48 'servic':27 'supersed':41 'train':29 'user':49 'version':13","created_at":"2026-05-01T08:06:31.099871+00:00","updated_at":"2026-05-01T08:06:31.099871+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'AIAPIClient' from 'ai_core_sdk' (/tmp/tmpf9f123wa/venv/lib/python3.12/site-packages/ai_core_sdk/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.6.2","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.sap.com/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/ai-core-sdk/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}