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

from sybilion import Client

# Token read from SYBILION_API_TOKEN env var automatically
c = Client()
me = c.me()
print(me.user_id, me.available_eur_cents, me.api_usage_tier)

Or pass the token explicitly:

c = Client(token="sk_ops_...")

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

What's in the box

Account

  • c.me() — authenticated account info (balance, tier).

Catalog

  • c.list_categories() / c.list_regions() — available thematic categories and geographic regions.

Forecasts

  • c.submit_forecast(request) — submit an async forecast job.
  • c.get_forecast(id) — poll status of a forecast job.
  • c.get_forecast_artifact(id, name) — download a forecast artifact by name.
  • c.wait_forecast(job_id) — polls until the job is settled or timeout is exceeded.

Drivers

  • c.get_drivers(request) — drivers ranked by explanatory power (synchronous, billed).

Alerts

  • c.get_alerts(metadata, context_enriched, ...) — anomaly alerts for a timeseries (synchronous, billed).

Jobs & Usage

  • c.list_jobs(...) / c.iter_jobs_pages(...) — async job list with optional filters.
  • c.get_usage(...) / c.iter_usage_pages(...) — credit/usage ledger.

Escape hatch

  • c._api — 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.5.tar.gz (42.1 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.5-py3-none-any.whl (77.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sybilion-0.1.5.tar.gz
  • Upload date:
  • Size: 42.1 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.5.tar.gz
Algorithm Hash digest
SHA256 cb54f8f6b14abe6f17d9d19ed7e88a5780b61b079e6e93b19b6ae32e91a0e8a0
MD5 a708b7dcbc7bcbb0a760ac32ce6ebbed
BLAKE2b-256 6fd3c45984b51a24a68a8590151318f038e668716af96671d08395615e2bd0c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sybilion-0.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: sybilion-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 77.3 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3cdbed9127392818831b15d5c1bf048a241ec47de41561cec565f9a8bff664de
MD5 1a4b1d1fae080569455d56facaec133f
BLAKE2b-256 7718f4f1022fbcd0cee026d6c6028abbc07df1863be1aadabf3ffc27aa660b32

See more details on using hashes here.

Provenance

The following attestation bundles were made for sybilion-0.1.5-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