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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 2.5 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.3.tar.gz
Algorithm Hash digest
SHA256 24d94b4cda5c19bc4775d5a180b5c9a1169e5777767faa9c8292d5bbae1d3aea
MD5 8b59dfe9364c4e2d910c62ccf3c43ecb
BLAKE2b-256 de0e0d2481063f32c4401d3d946dc9897b494fb8ba638b6c3a9fa09c49b19277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3553ac59941a50cf8173a45eadd1df86c58ae2d6c1ada5d286180c0fc77bd40b
MD5 0e8293f1e1b4fe48d122896827f03657
BLAKE2b-256 8f88044ac67ef08015f9ee60bbf2d02e6cadca0a7d9bff91e21802d228536b3f

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