Skip to main content

octospark-sdk

PyPI version license

The official Python SDK for the Octospark public API.

  • A method for every operation. Every public API operation is a client method, generated from the same OpenAPI document that powers the API reference.
  • Zero dependencies. Built on the Python standard library; nothing else is installed with the package.
  • One error type. Every non-2xx response raises OctosparkApiError with the HTTP status and parsed body.
  • Python 3.9+.

Install

pip install octospark-sdk

Quick start

Create an API key in Octospark under Organization settings, API Keys, export it, and you are ready:

export OCTOSPARK_TOKEN="octo_live_..."
import os

from octospark_sdk import OctosparkClient

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

organizations = octospark.organizations_list_organizations(query={"limit": 1})
print(organizations["data"][0])

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

A complete flow

Discover your organization, pick a team, and list its posts:

import os

from octospark_sdk import OctosparkClient

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

organizations = octospark.organizations_list_organizations(query={"limit": 1})
organization_id = organizations["data"][0]["id"]

teams = octospark.teams_list_teams(query={"organizationId": organization_id, "limit": 1})
team_id = teams["data"][0]["id"]

posts = octospark.social_list_posts(teamId=team_id, query={"limit": 10})

Error handling

Every non-2xx response raises OctosparkApiError, carrying the HTTP status and the parsed response body:

import os

from octospark_sdk import OctosparkApiError, OctosparkClient

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

try:
    octospark.organizations_list_organizations(query={"limit": 1})
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

Resource Link
Get started https://docs.octospark.ai/start
Authentication https://docs.octospark.ai/authentication
SDKs https://docs.octospark.ai/sdks
API reference https://docs.octospark.ai/api-reference/organizations/list-organizations
OpenAPI document https://docs.octospark.ai/openapi.json

License

MIT

Metadata

Release files for octospark-sdk 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for octospark-sdk 0.1.3
File Size Uploaded Provenance
octospark_sdk-0.1.3.tar.gz 4.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for octospark-sdk 0.1.3
File Interpreter ABI Platform
octospark_sdk-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / octospark_sdk-0.1.3.tar.gz

Download URL octospark_sdk-0.1.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bb2688b1cba73112f89bc76bc5894a291d54ae8d011ead0b5a32f3b98728819b
BLAKE2b-256 checksum
How to use checksums
4b6a72fb01888a52274128a305573a6a1ed5446c0ccf4a533f7b7427dc879a5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.

Transparency log

Release files / octospark_sdk-0.1.3-py3-none-any.whl

Download URL octospark_sdk-0.1.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
73e2a09a97d7d3b5219ca845640b071a48e03bb34683d2b74ec7e9ec3884536b
BLAKE2b-256 checksum
How to use checksums
4123321d0f9b32fb3906ec58a828463758aef5c8820ad66ef6c16cf711f027c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.

Transparency log

Security for octospark-sdk 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for octospark_sdk-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 11, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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