Skip to main content

Official Python SDK for the Sybilion API.

Project description

Sybilion Python SDK

Official Python SDK for the Sybilion API.

pip install sybilion

Requires Python 3.10+.

Quick use

import os

from sybilion import Client

c = Client(token=os.environ["SYBILION_API_TOKEN"])
me = c.raw.api_v1_me_get()
print(me.user_id, me.available_eur_cents, me.api_usage_tier)

The token is an API key (sk_ops_...) created in the Developers Portal, or a dashboard session token.

Base URL

Resolution order:

  1. base_url= when non-empty
  2. SYBILION_API_BASE_URL in the process environment (optional)
  3. Compiled default https://api.sybilion.dev

Pass the token explicitly (for example from SYBILION_API_TOKEN); Client does not read it from the environment by itself.

What's in the box

  • sybilion.Client — Bearer auth, ergonomic helpers.
  • client.wait_forecast(job_id) — polls GET /api/v1/forecasts/{id} until settled.
  • client.iter_usage_pages(...), client.iter_jobs_pages(...) — paginated iterators.
  • client.raw — escape hatch to the OpenAPI-generated DefaultApi for any endpoint not yet wrapped.
  • Typed exceptions (sybilion.ApiException and per-status subclasses).

Documentation

Full guides, feature walkthroughs, API reference, and SDK patterns: https://sybilion.dev/docs/.

Support

License

Apache 2.0.

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

sybilion-0.1.3.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

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

sybilion-0.1.3-py3-none-any.whl (70.8 kB view details)

Uploaded Python 3

File details

Details for the file sybilion-0.1.3.tar.gz.

File metadata

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

File hashes

Hashes for sybilion-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a701f6ec9ff13519317038c18891c12f70c512c1825e002d29daada3700541ef
MD5 a39d4975142b8b32d44afeca329d3c2f
BLAKE2b-256 ebcf1a76f1f61938508bc4c584c0bdefb7b84915f3712f5a0647bff04c9d9c27

See more details on using hashes here.

Provenance

The following attestation bundles were made for sybilion-0.1.3.tar.gz:

Publisher: release.yml on Sybilion-AI/sybilion-python

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

File details

Details for the file sybilion-0.1.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for sybilion-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 861e6d286a29df167daf031169ecc44449b54e01c9fde13e115b3a9af3051528
MD5 763ec71086e3eefe91b49cbda3c59b43
BLAKE2b-256 eae9005cc3da2da5c8884f82332bf46d02bd0ae267b2a8001b617093deb66ad2

See more details on using hashes here.

Provenance

The following attestation bundles were made for sybilion-0.1.3-py3-none-any.whl:

Publisher: release.yml on Sybilion-AI/sybilion-python

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