Skip to main content

Datasphere-Core

Shared, presentation-independent commands for SAP Datasphere automation. Datasphere-Core powers Datasphere-CLI and Datasphere-MCP.

Installation

pip install datasphere-core

Example

import asyncio

from datasphere_core import CommandContext, DatasphereSession, SessionConfig
from datasphere_core.commands.task_chains import run_task_chain
from datasphere_core.models.task_chains import RunTaskChainRequest


async def main() -> None:
    config = SessionConfig(
        base_url="https://example.eu10.hcs.cloud.sap",
        authorization_url="https://example.authentication.sap.hana.ondemand.com/oauth/authorize",
        token_url="https://example.authentication.sap.hana.ondemand.com/oauth/token",
        client_id="client-id",
        client_secret="client-secret",
    )

    async with DatasphereSession(config) as session:
        await session.authenticate(interactive=True)
        result = await run_task_chain(
            CommandContext(client=session.client),
            RunTaskChainRequest(
                chain="TC_TEST_DEV",
                space="DEV",
                timeout_seconds=600,
            ),
        )
        print(result)


asyncio.run(main())

[!NOTE] OAuth tokens are stored in the operating system credential store. Use an explicit interactive login before calling authenticate(interactive=False) from non-interactive applications.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasphere_core-0.5.0.tar.gz (72.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasphere_core-0.5.0-py3-none-any.whl (65.4 kB view details)

Uploaded Python 3

File details

Details for the file datasphere_core-0.5.0.tar.gz.

File metadata

  • Download URL: datasphere_core-0.5.0.tar.gz
  • Upload date:
  • Size: 72.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for datasphere_core-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b8c0ef74ba8991d4283483c674b5014d1bba71ba84792b5056f1f050447ce39f
MD5 10f6f9699fe54496dbc6f926596c9e31
BLAKE2b-256 c76911e6a5be9550c534a77d0f4dd6fb3bb0b36f1ce25faf0fe2c252bea0c4d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasphere_core-0.5.0.tar.gz:

Publisher: release.yml on peterschwps/SAP-Datasphere-CLI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasphere_core-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for datasphere_core-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc75ce2213d3894764c990f762aef21f4cb29dfd120d5ca118cc877882e60e77
MD5 6d555350838271b339d58ee61b82a877
BLAKE2b-256 9399ec4d7811731ede448498cb0983117c0db859ca7d757b53df0c39928007d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasphere_core-0.5.0-py3-none-any.whl:

Publisher: release.yml on peterschwps/SAP-Datasphere-CLI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.1

2 files

This release

0.5.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page