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
- Get started: https://docs.octospark.ai/start
- SDKs: https://docs.octospark.ai/sdks
- Authentication: https://docs.octospark.ai/authentication
- API reference: https://docs.octospark.ai/api-reference/organizations/list-organizations
- OpenAPI document: https://docs.octospark.ai/openapi.json
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ccc2295a03891af029bd808ec410d4929e2934190214f0e203b3af93fd84603
|
|
| MD5 |
81dd561c7c1859d1c88c71bc3ea13834
|
|
| BLAKE2b-256 |
fbed2e7ed2a5c18d09e7d67f786db748bef61edef47041a0a1ff1552e59704c6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
octospark_sdk-0.1.0.tar.gz -
Subject digest:
6ccc2295a03891af029bd808ec410d4929e2934190214f0e203b3af93fd84603 - Sigstore transparency entry: 1790040394
- Sigstore integration time:
-
Permalink:
Just-Understanding-Data-Ltd/octospark@ff664ec2b4eb3538a91f0b4ae8417acde466753c -
Branch / Tag:
refs/tags/python-sdk-v0.1.0 - Owner: https://github.com/Just-Understanding-Data-Ltd
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@ff664ec2b4eb3538a91f0b4ae8417acde466753c -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e278cf04034cd25dc30fffde86526dab74a5141ce467401616ab19902139948b
|
|
| MD5 |
af607daef18a973befa3bf8f04a4094e
|
|
| BLAKE2b-256 |
9249fcebdaeff04b159a62ad2345ea0ce7d54ef228395432131ccc3d6999e0a9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
octospark_sdk-0.1.0-py3-none-any.whl -
Subject digest:
e278cf04034cd25dc30fffde86526dab74a5141ce467401616ab19902139948b - Sigstore transparency entry: 1790040415
- Sigstore integration time:
-
Permalink:
Just-Understanding-Data-Ltd/octospark@ff664ec2b4eb3538a91f0b4ae8417acde466753c -
Branch / Tag:
refs/tags/python-sdk-v0.1.0 - Owner: https://github.com/Just-Understanding-Data-Ltd
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-sdk.yml@ff664ec2b4eb3538a91f0b4ae8417acde466753c -
Trigger Event:
push
-
Statement type: