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.2.tar.gz (38.2 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.2-py3-none-any.whl (68.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sybilion-0.1.2.tar.gz
  • Upload date:
  • Size: 38.2 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.2.tar.gz
Algorithm Hash digest
SHA256 3f35ed6e025aca7c15f5dbae6228be5bfadf8d8bec1e5d4205ea1b8baf7ce496
MD5 82e82e5b9da966c8649805be49cec494
BLAKE2b-256 a972e5f8df5c8e82a38fdfff9d6ad53a55b3c8dc37647e78fcb5921e99bd44ad

See more details on using hashes here.

Provenance

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

Publisher: release.yml on Mir-Insight/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.2-py3-none-any.whl.

File metadata

  • Download URL: sybilion-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 68.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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cc6408753d1db72424533a83f39ab702fae51deb1f90bbe1865f5856f6d25d21
MD5 d09bb5af2c78c0db44771eef0fbd30e5
BLAKE2b-256 1ee86a57e1cb82fee00b573521be7eaa322439e26b4b983c2682a4c1c549e242

See more details on using hashes here.

Provenance

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

Publisher: release.yml on Mir-Insight/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