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.1.tar.gz (72.4 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.1-py3-none-any.whl (65.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasphere_core-0.5.1.tar.gz
  • Upload date:
  • Size: 72.4 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.1.tar.gz
Algorithm Hash digest
SHA256 1d230ec46757da447de4337108704210a61954b420874153c603e2221317b90a
MD5 6b6b886d2cfbd88a34551e9c559d2e93
BLAKE2b-256 577b991ad2051bd7b365ac4b6970e3bfd5472fcf4bb4edba199785184cf06d9a

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasphere_core-0.5.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasphere_core-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c1c4320bd7f75f81fc6ef5d9ed57888c69e660dfb63fbae37a99ff074c80e320
MD5 5622502959674427efcadb17bb9bb3c6
BLAKE2b-256 ca0dbfc12b80668a2573466aa54b18928de99e9cb3413f1b815615f4133ced6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasphere_core-0.5.1-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

This release

0.5.1 This release

2 files

0.5.0

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