Official Python client for LedgerBill API
Project description
ledgerbill-sdk
Official Python SDK scaffold for LedgerBill.
The SDK aligns to the canonical OpenAPI source (src/openapi.ts) served at /api/openapi.json.
Install (local)
pip install -e sdk/python
Usage
from ledgerbill_sdk import LedgerBillClient
client = LedgerBillClient(
base_url="http://localhost:3107",
tenant_id="tenant_123",
api_key="lb_your_api_key"
)
plans = client.get_pricing_plans()
preview = client.preview_usage(
customer_id="cus_123",
feature_key="events_processed",
amount=1000,
)
Contract governance
The public API taxonomy expected in /api/openapi.json is:
Tenant AdministrationBilling OperationsDeveloper APIsStripe IntegrationPolicy AdministrationAudit & GovernanceReplay Operations
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ledgerbill_sdk-0.1.2.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ledgerbill_sdk-0.1.2.tar.gz.
File metadata
- Download URL: ledgerbill_sdk-0.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c90ef4a4c5b38504e2bcac1e3d000573d0e52b1f925d1159b56ca2c6e302b97
|
|
| MD5 |
8232ba1267718e6b5b4b9247526b8092
|
|
| BLAKE2b-256 |
e2ecb03de4c8ab2f338940affdf749a2017a0a322ec0a5915be26c799701c75f
|
File details
Details for the file ledgerbill_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ledgerbill_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89a4884a926a883ee02d924449aa82a8a202976c99476661157ae41373db4be3
|
|
| MD5 |
194584f36554605cf78b24f9d646c075
|
|
| BLAKE2b-256 |
8631fccc7763d7d55f70c8bcd05c58b183937f9e088f2e08649b3cda34f2ce85
|