Skip to main content

busbar-admin (Python SDK)

A typed Python client for the Busbar Admin API (/api/v1/admin).

The client is generated from the typed OpenAPI 3.1 schema in openapi.json with openapi-python-client, so every response is a real dataclass (InfoView, TopologyInfo, ...) — not Any/dict.

PyPI package name: busbar-admin. (busbar is already taken on PyPI, so the admin SDK ships as busbar-admin.)

Versioning

The SDK carries its own semantic version, independent of the busbar server / OpenAPI info.version (currently 1.5.0). The current release is 0.2.0 (the 1.5.0 spec added operationIds, which renamed every generated function — a breaking change from 0.1.0). A given SDK release targets the frozen, additive-only /api/v1/admin surface and will keep working across server versions on that surface.

Install

pip install busbar-admin

Usage

The admin API authenticates with an x-admin-token header. Construct an AuthenticatedClient that sends the token under that header name (no Bearer prefix):

from busbar_admin import AuthenticatedClient
from busbar_admin.api.default import get_info
from busbar_admin.models import InfoView

client = AuthenticatedClient(
    base_url="http://localhost:8081",
    token="YOUR_ADMIN_TOKEN",
    # send the credential as `x-admin-token: <token>` instead of Authorization: Bearer
    auth_header_name="x-admin-token",
    prefix="",
)

with client as client:
    info: InfoView = get_info.sync(client=client)
    # `info` is TYPED — your editor autocompletes .version, .topology, .build, ...
    print("busbar version:", info.version)                 # -> "1.4.0"
    print("pools:", info.topology.pools)
    print("config version:", info.config_version)

Prefer Authorization: Bearer? Drop the auth_header_name/prefix overrides — the default AuthenticatedClient sends Authorization: Bearer <token>, which the admin API also accepts.

Async is available too (get_info.asyncio / .asyncio_detailed).

Regenerating the client

The committed client is generated from openapi.json. To re-derive it:

make generate     # pins openapi-python-client via requirements-dev.txt

CI regenerates on every PR/push and fails if the committed client drifts from openapi.json (git diff --exit-code).

License

Apache-2.0 © Busbar, Inc.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

busbar_admin-0.4.0.tar.gz (83.0 kB view details)

Uploaded Source

Built Distribution

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

busbar_admin-0.4.0-py3-none-any.whl (220.8 kB view details)

Uploaded Python 3

File details

Details for the file busbar_admin-0.4.0.tar.gz.

File metadata

  • Download URL: busbar_admin-0.4.0.tar.gz
  • Upload date:
  • Size: 83.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for busbar_admin-0.4.0.tar.gz
Algorithm Hash digest
SHA256 0a062281016fae72b955b356575aa8dfb011bed3d62d7a8564f8358d25656d85
MD5 94e4dca59d88c8a2c0bbca859cfdc71e
BLAKE2b-256 9e5f4f6de6f474903d04f655f5b4e14e08b79e73ca34c4040e43297786861721

See more details on using hashes here.

Provenance

The following attestation bundles were made for busbar_admin-0.4.0.tar.gz:

Publisher: release.yml on GetBusbar/busbar-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 busbar_admin-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: busbar_admin-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 220.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for busbar_admin-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60b374649051f96b3e9ac1d3b0a5d82338b4648b27c021b1fcee65ef87e95ff2
MD5 2f5f7fc2d3aa0910d5fbe6d95e6fa836
BLAKE2b-256 7625ff57040dc96f90c1ed3a20d65717dee4dc12efa41b4e13a4f5a75fcc896d

See more details on using hashes here.

Provenance

The following attestation bundles were made for busbar_admin-0.4.0-py3-none-any.whl:

Publisher: release.yml on GetBusbar/busbar-python

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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

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