Skip to main content

A Python SDK for the JustPaid API

Project description

JustPaid API Python SDK

This SDK provides a simple interface to interact with the JustPaid API for usage-based billing.

Installation

pip install justpaid

Quick Start

from justpaid import JustPaidAPI

print(justpaid.__version__) # Should print "0.x.x"

# Initialize the API client
api = JustPaidAPI(api_token="your_api_token_here")

# Get billable items by customer_id
items = api.get_billable_items(customer_id="customer-123")

# Or get billable items by external_customer_id
items = api.get_billable_items(external_customer_id="ext-customer-123")

print(items)

for more examples, see the examples directory.

Features

  • Retrieve billable items
  • Ingest usage events
  • Batch ingest multiple usage events asynchronously

Documentation

For detailed API documentation and examples, see the docs directory.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

justpaid-0.1.4.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

justpaid-0.1.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: justpaid-0.1.4.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for justpaid-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0e2314f9048f49b9cc082a3042213d758b0fc1844c7418da27fba1230d7fb692
MD5 d71ea37e667e4c3b74e8b35d086ff7ef
BLAKE2b-256 235f2add6e1791ebb7af792e98b473630207770e7fd5d467f3c0ba73cbcd9169

See more details on using hashes here.

File details

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

File metadata

  • Download URL: justpaid-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for justpaid-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6b0a026c097946bb0789ed62b818f1e8ce7e4f2e68ad0106dcbfc2c5f06deeb7
MD5 538614ada86e1ced050540f8e728e3ea
BLAKE2b-256 6ce7af89f00ca9c830ddbad781108ad653389e5a8c39503a113b9ef8c7aecc62

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