Skip to main content

Installation

Install from PyPI

Or with your preferred dependency manager:

System requirements

Dependencies httpx and pydantic are installed automatically.

Basic setup

Configuration options

The SmartbillsClientOptions dataclass accepts the following parameters:

Context manager pattern

The client uses an async context manager to ensure clean shutdown of the underlying HTTP connection pool:
If you prefer manual lifecycle management:

Updating credentials at runtime

Reading current values

Per-request overrides

Every service method accepts an optional RequestOptions parameter:

RequestOptions

Environment variables

We recommend storing credentials in environment variables:

Next steps