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.2.0.tar.gz (75.6 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.2.0-py3-none-any.whl (198.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: busbar_admin-0.2.0.tar.gz
  • Upload date:
  • Size: 75.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 0e33b13c3663125ae5eda045cc708fd044d909c1a9c0a04e52aebe69d88bcfcd
MD5 0feb0710096ff43987ab6aa710c8c62f
BLAKE2b-256 2e6099273485386cec12837e395f3559f1e1985295b1cc33436fb1f28d2e4fce

See more details on using hashes here.

Provenance

The following attestation bundles were made for busbar_admin-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: busbar_admin-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 198.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 399cbc1f07ed40affd2652b2b59e68efe8a9fc763e005dc9e37e5752734bdf82
MD5 e6ab4aed511b9f8cb096fda60c39d520
BLAKE2b-256 6453b3e7bd422bad4373b1d657ea8828f76201ce623341e2b2ca0942ea40df2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for busbar_admin-0.2.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

0.4.0

2 files

0.3.0

2 files

This release

0.2.0 This release

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