sap-ai-sdk-base


Namesap-ai-sdk-base JSON
Version 3.1.6 PyPI version JSON
download
home_pagehttps://www.sap.com/
SummarySAP Cloud SDK for AI (Python): Base Client
upload_time2025-09-02 13:22:33
maintainerNone
docs_urlNone
authorSAP SE
requires_python>=3.9
licenseSAP DEVELOPER LICENSE AGREEMENT
keywords sap ai core
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# SAP Cloud SDK for AI (Python): Base Client for AI API
The SDK formerly known as *AI API Client SDK* was rebranded.

The class names have not changed i.e., you can continue to use existing code.

The Base Client for AI API is a Python-based SDK that enables you to access the AI API using Python methods and data
structures.

The Base SDK can be used with any implementation of AI API. Because it is independent of the runtime implementation, it doesn't provide access to runtime-specific APIs. For example, maintaining object store secrets is specific to SAP AI Core and is therefore not included in the Base SDK. Check for SDK offerings for your runtime that let you access any runtime-specific APIs. For more information on the Core SDK see <https://pypi.org/project/sap-ai-sdk-core/>.

For more information on the AI API specification, SAP AI Core and related topics, please refer to <https://help.sap.com/docs/AI_CORE?version=CLOUD>.

## Example Usage

```python
from ai_api_client_sdk.ai_api_v2_client import AIAPIV2Client

# Instantiate the client
client = AIAPIV2Client(base_url=AI_API_URL,
    auth_url=AUTH_URL,
    client_id=CLIENT_ID,
    client_secret=CLIENT_SECRET, resource_group=RESOURCE_GROUP)

# Make some queries, e.g.
scenarios = client.scenario.query()

for scenario in scenarios.resources:
    print(scenario.id)

# Find a deployable executables in scenario 1111
executables = client.executable.query(scenario_id="1111")
for executable in executables.resources:
    if executable.deployable == False:
        break
print(executable.id)

# Inspect the required parameters for the executable
for parameter in executable.parameters:
    print("Parameter:{}, Type: {}".format(parameter.name, parameter.type))

# Create a configuration
parameter_epochs = ParameterBinding(key="training-epochs", value="1")
myConfiguration = client.configuration.create(name="test", scenario_id="1111" executable_id="argo-mnist-0.2.1", parameter_bindings=[parameter_epochs])
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://www.sap.com/",
    "name": "sap-ai-sdk-base",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "SAP AI Core",
    "author": "SAP SE",
    "author_email": null,
    "download_url": "https://pypi.python.org/pypi/ai-api-client-sdk",
    "platform": "Windows",
    "description": "\n# SAP Cloud SDK for AI (Python): Base Client for AI API\nThe SDK formerly known as *AI API Client SDK* was rebranded.\n\nThe class names have not changed i.e., you can continue to use existing code.\n\nThe Base Client for AI API is a Python-based SDK that enables you to access the AI API using Python methods and data\nstructures.\n\nThe Base SDK can be used with any implementation of AI API. Because it is independent of the runtime implementation, it doesn't provide access to runtime-specific APIs. For example, maintaining object store secrets is specific to SAP AI Core and is therefore not included in the Base SDK. Check for SDK offerings for your runtime that let you access any runtime-specific APIs. For more information on the Core SDK see <https://pypi.org/project/sap-ai-sdk-core/>.\n\nFor more information on the AI API specification, SAP AI Core and related topics, please refer to <https://help.sap.com/docs/AI_CORE?version=CLOUD>.\n\n## Example Usage\n\n```python\nfrom ai_api_client_sdk.ai_api_v2_client import AIAPIV2Client\n\n# Instantiate the client\nclient = AIAPIV2Client(base_url=AI_API_URL,\n    auth_url=AUTH_URL,\n    client_id=CLIENT_ID,\n    client_secret=CLIENT_SECRET, resource_group=RESOURCE_GROUP)\n\n# Make some queries, e.g.\nscenarios = client.scenario.query()\n\nfor scenario in scenarios.resources:\n    print(scenario.id)\n\n# Find a deployable executables in scenario 1111\nexecutables = client.executable.query(scenario_id=\"1111\")\nfor executable in executables.resources:\n    if executable.deployable == False:\n        break\nprint(executable.id)\n\n# Inspect the required parameters for the executable\nfor parameter in executable.parameters:\n    print(\"Parameter:{}, Type: {}\".format(parameter.name, parameter.type))\n\n# Create a configuration\nparameter_epochs = ParameterBinding(key=\"training-epochs\", value=\"1\")\nmyConfiguration = client.configuration.create(name=\"test\", scenario_id=\"1111\" executable_id=\"argo-mnist-0.2.1\", parameter_bindings=[parameter_epochs])\n```\n\n",
    "bugtrack_url": null,
    "license": "SAP DEVELOPER LICENSE AGREEMENT",
    "summary": "SAP Cloud SDK for AI (Python): Base Client",
    "version": "3.1.6",
    "project_urls": {
        "Download": "https://pypi.python.org/pypi/ai-api-client-sdk",
        "Homepage": "https://www.sap.com/"
    },
    "split_keywords": [
        "sap",
        "ai",
        "core"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "1960a2349a7e6ac73ffdca34cf26966c1a62e0eb2534da229342b0dc1e0adb50",
                "md5": "92af5a563359c8e2b7ea859b918c775c",
                "sha256": "bfc3d841d2b98b5da7de1892aeff280db04b2884e49e7ddf52a07762500c9d05"
            },
            "downloads": -1,
            "filename": "sap_ai_sdk_base-3.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "92af5a563359c8e2b7ea859b918c775c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 268229,
            "upload_time": "2025-09-02T13:22:33",
            "upload_time_iso_8601": "2025-09-02T13:22:33.734783Z",
            "url": "https://files.pythonhosted.org/packages/19/60/a2349a7e6ac73ffdca34cf26966c1a62e0eb2534da229342b0dc1e0adb50/sap_ai_sdk_base-3.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-02 13:22:33",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "sap-ai-sdk-base"
}
        
Elapsed time: 4.15141s