Skip to main content

Official Python client for LedgerBill API

Project description

ledgerbill-sdk

Official Python SDK scaffold for LedgerBill.

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,
)

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 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.0.tar.gz
Algorithm Hash digest
SHA256 3ffcd82eea58a06b2ae6474d1aa0c8dd99140bc29d085c99ec34642db0efbedf
MD5 e84331f2db9c1d5162088e92404eea27
BLAKE2b-256 830a7e407b332ff5fe1051d5ad7f426d434f7f36fcc8d26a60093e01c6af95ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2260a5875a738c319e18dcedbdfea5648202e26a861c2a04e49089139fcecb4
MD5 0bad3a2fc341f953a360c963e20ea65a
BLAKE2b-256 05ab2d7c653d8c78029b4d7957a53b94cac2561e778d5a0ca524ec055cbca7fd

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