Skip to main content

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

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.2.tar.gz (2.3 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.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for ledgerbill_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7c90ef4a4c5b38504e2bcac1e3d000573d0e52b1f925d1159b56ca2c6e302b97
MD5 8232ba1267718e6b5b4b9247526b8092
BLAKE2b-256 e2ecb03de4c8ab2f338940affdf749a2017a0a322ec0a5915be26c799701c75f

See more details on using hashes here.

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

Hashes for ledgerbill_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 89a4884a926a883ee02d924449aa82a8a202976c99476661157ae41373db4be3
MD5 194584f36554605cf78b24f9d646c075
BLAKE2b-256 8631fccc7763d7d55f70c8bcd05c58b183937f9e088f2e08649b3cda34f2ce85

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