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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.10.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.10.tar.gz
Algorithm Hash digest
SHA256 fd32be37bb481086f01a7b81e679c25700b5a54158b1b67319671efae1e775cd
MD5 88749610b2b33c8895979aeba5d28f11
BLAKE2b-256 1ef4b0b57f7a578157a9aaab3fdb12ffd0936610ec4299bb8c4368f8da71874a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ledgerbill_sdk-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 58a54bd2325387338e95340b1fc19960392dee6af508b2ec2375d15ac9732268
MD5 b57cfe92303e294a543b516275b73610
BLAKE2b-256 3b6e7619671bf55b0f30aa5d9cca3ea0797ac54cadbb9ff6d4b7f748807665f3

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