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.

Metadata

Release files for busbar-admin 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for busbar-admin 0.4.0
File Size Uploaded Provenance Actions
busbar_admin-0.4.0.tar.gz 83.0 kB With provenance Details for busbar_admin-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for busbar-admin 0.4.0
File Interpreter ABI Platform Actions
busbar_admin-0.4.0-py3-none-any.whl Python 3 none any Details for busbar_admin-0.4.0-py3-none-any.whl

Total release size: 303.8 kB

Release files / busbar_admin-0.4.0.tar.gz

Download URL busbar_admin-0.4.0.tar.gz
Size 83.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0a062281016fae72b955b356575aa8dfb011bed3d62d7a8564f8358d25656d85
BLAKE2b-256 checksum
How to use checksums
9e5f4f6de6f474903d04f655f5b4e14e08b79e73ca34c4040e43297786861721
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.

Transparency log

Release files / busbar_admin-0.4.0-py3-none-any.whl

Download URL busbar_admin-0.4.0-py3-none-any.whl
Size 220.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60b374649051f96b3e9ac1d3b0a5d82338b4648b27c021b1fcee65ef87e95ff2
BLAKE2b-256 checksum
How to use checksums
7625ff57040dc96f90c1ed3a20d65717dee4dc12efa41b4e13a4f5a75fcc896d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.

Transparency log

Security for busbar-admin 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for busbar_admin-0.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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