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.9.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.9-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 9a789bbfb33284d40426a8931a59759833e16acc67ecf08b04779ab6d45a6148
MD5 9ba888adbfd827b1826fc3f647290993
BLAKE2b-256 81bbc7b344c4d8cb08073a02e86a7edbdb367830f3f8de35b757bb78f8edc129

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 40668c3c8c90272f611da1996bab893ea7d0aab3c181fd4ff012e723e53d71fb
MD5 289e4e98cf3f7df3186a6e9f50507c2a
BLAKE2b-256 f1d4d543a80c5dc14d0547b069b3d356925155020cf1e879bdef2b1718e72698

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