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)

Custom base URL

The client defaults to https://api.octospark.ai. Pass base_url to the constructor to target a different Octospark API environment.

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.1.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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: octospark_sdk-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 701cc0d5c631403068471e70ee83b49253aaac7d82a340b4be41b86995a0e47a
MD5 c719c3c2bef297c5a36d134d0e463ea1
BLAKE2b-256 eeacab3de379173de5fe698b54310b97518d824939ae2746bba35c1f4762667f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: octospark_sdk-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd2bde00054161df8e99b0f1a93ad334fa6b14f4da6095ad2d6837fc0d9a42d
MD5 03ed02287194109e0f047fbc0bb03da9
BLAKE2b-256 5fb89326d215379befff5a2b0b911aec2f390bd0a331e47a7c7cef0e038b262f

See more details on using hashes here.

Provenance

The following attestation bundles were made for octospark_sdk-0.1.1-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