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.

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

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.4.tar.gz (2.6 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.4-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 2.6 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.4.tar.gz
Algorithm Hash digest
SHA256 910790f27a29d64ba64d2692af9454228f1a4bc47615b0669035e2a53e412057
MD5 80ceeed885615a9604ba9423296a43c0
BLAKE2b-256 8f8009b575d2f18cb00b0e5e3b0db11a3fee24b306b23704a38f4fc8ad19197c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.9 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4c4272cca1723761b5cb570e24a36da1deb3ca2420ad58f2bcf40b9af66cb20
MD5 83d99db44300eb2ff7494e6510e3d9f7
BLAKE2b-256 c67a0f685098fe897e3775ee3e8610cb3159a490fc7f6704440cd46508889930

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