Skip to main content

Official Python client for LedgerBill API

Project description

   ███╗   ██╗ ██████╗ ██╗██████╗     ███████╗████████╗ █████╗  ██████╗██╗  ██╗
   ████╗  ██║██╔═══██╗██║██╔══██╗    ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝
   ██╔██╗ ██║██║   ██║██║██████╔╝    ███████╗   ██║   ███████║██║     █████╔╝
   ██║╚██╗██║██║   ██║██║██╔══██╗    ╚════██║   ██║   ██╔══██║██║     ██╔═██╗
   ██║ ╚████║╚██████╔╝██║██║  ██║    ███████║   ██║   ██║  ██║╚██████╗██║  ██╗
   ╚═╝  ╚═══╝ ╚═════╝ ╚═╝╚═╝  ╚═╝    ╚══════╝   ╚═╝   ╚═╝  ╚═╝ ╚═════╝╚═╝  ╚═╝
    LedgerBill SDK | Python | BSL 1.1 | © Noir Stack LLC

ledgerbill-sdk

Official Python SDK scaffold for LedgerBill.

The SDK aligns to the canonical OpenAPI source (src/openapi.ts) served at /api/openapi.json.

Package listings

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 Administration
  • Billing Operations
  • Developer APIs
  • Stripe Integration
  • Policy Administration
  • Audit & Governance
  • Replay Operations

Support & Discussion

License

This project is licensed under the Business Source License 1.1 (BSL).

  • Change Date: 2030-06-14 (4 years from initial release)
  • Change License: Apache License 2.0
  • Commercial Use: Restricted until Change Date
  • After Change Date: Automatically converts to Apache 2.0

For more details, see LICENSE.

© 2026 Noir Stack LLC. All rights reserved.

For alternative licensing arrangements, contact: legal@noirstack.com

Project details


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.8.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

ledgerbill_sdk-0.1.8-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file ledgerbill_sdk-0.1.8.tar.gz.

File metadata

  • Download URL: ledgerbill_sdk-0.1.8.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ledgerbill_sdk-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c507f09c3cdcf3d165c88a8f6c9e15fecc6874956f002872b5c3d9b9422e1132
MD5 32304eadb34786764e5110dc878a8de2
BLAKE2b-256 96deb2323ae64efbfa9a9c074e0094b211d8d377f1f7e63d9ba0016dc4c34c20

See more details on using hashes here.

File details

Details for the file ledgerbill_sdk-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: ledgerbill_sdk-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for ledgerbill_sdk-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 97d30c4a1ce4c2286605a78aad805856dc93dca9cf00ffcf5866100fad40a0bc
MD5 204e619f03d4e4dd747fa2279c8d64a6
BLAKE2b-256 227ecfe4c4ff9fbd5e5fd7e8ebb2fcd65303a3fc9d548d8fe37d4ad64a18db38

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page