Skip to main content

Generated Python SDK for the Octospark public API.

Project description

octospark-sdk

Generated Python SDK for the Octospark public API.

The SDK uses the same OpenAPI document as the Octospark API reference and defaults to https://api.octospark.ai.

Install

pip install octospark-sdk

Authentication

Create an API key in Octospark from Organization settings, API Keys.

Store it as OCTOSPARK_TOKEN and pass it to the SDK:

export OCTOSPARK_TOKEN="octo_live_..."

Full guide: https://docs.octospark.ai/authentication

Usage

import os

from octospark_sdk import OctosparkApiError, OctosparkClient

octospark = OctosparkClient(token=os.environ["OCTOSPARK_TOKEN"])

try:
    organizations = octospark.organizations_list_organizations(query={"limit": 1})
    print(organizations["data"][0])
except OctosparkApiError as error:
    print(error.status, error.body)

Staging

The SDK defaults to production. To target staging, pass base_url:

octospark = OctosparkClient(
    base_url="https://api-staging.octospark.ai",
    token=os.environ["OCTOSPARK_TOKEN"],
)

Documentation

Project details


Download files

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

Source Distribution

octospark_sdk-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

octospark_sdk-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file octospark_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: octospark_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for octospark_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ccc2295a03891af029bd808ec410d4929e2934190214f0e203b3af93fd84603
MD5 81dd561c7c1859d1c88c71bc3ea13834
BLAKE2b-256 fbed2e7ed2a5c18d09e7d67f786db748bef61edef47041a0a1ff1552e59704c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for octospark_sdk-0.1.0.tar.gz:

Publisher: publish-python-sdk.yml on Just-Understanding-Data-Ltd/octospark

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

File details

Details for the file octospark_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: octospark_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for octospark_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e278cf04034cd25dc30fffde86526dab74a5141ce467401616ab19902139948b
MD5 af607daef18a973befa3bf8f04a4094e
BLAKE2b-256 9249fcebdaeff04b159a62ad2345ea0ce7d54ef228395432131ccc3d6999e0a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for octospark_sdk-0.1.0-py3-none-any.whl:

Publisher: publish-python-sdk.yml on Just-Understanding-Data-Ltd/octospark

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page