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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b123e9c48614968aa8c19a34b99ed9ed3922ff96ddd5f3bbd70782723ce5d35f
MD5 a8be877e6d04d994e14b49d81a97807f
BLAKE2b-256 280313e4807da912e27cfeef40475c94d5cb1d6dabd07760cce320c18eb6ea38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ledgerbill_sdk-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e6b7a2e3b932ef55e0b02807a3edd6f831029c2d07d95a8954944cbe869eac8
MD5 9fb0af95f10383ced684b0dc3fe7f7de
BLAKE2b-256 ebf16a1241b38e0326c821047445cff65b14423c22b237de30537f80fcff1be7

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