Skip to main content

Python SDK (server)

Official Autlantic Billing HTTP client for Python backends.

Install (local)

cd sdks/python
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"  # or: pip install -e . pytest
pytest

Usage

from autlantic_billing import AutlanticBilling, verify_billing_webhook

billing = AutlanticBilling.from_env()

result = billing.create_payment_link({
    "amountUsdc": 42,
    "merchantRefPrefix": "invoice",
    "successUrl": "myapp://billing/success",
    "cancelUrl": "myapp://billing/cancel",
})
url = result.get("url")

Webhook handler:

from autlantic_billing import verify_billing_webhook, parse_billing_webhook_event

def handle(raw_body: str, signature: str | None, secret: str):
    if not verify_billing_webhook(secret, raw_body, signature):
        raise ValueError("bad signature")
    event = parse_billing_webhook_event(raw_body)
    # unlock access on invoice.paid / payment.paid / subscription.activated

Notes

  • Hosted API only. Pins Autlantic-Version: 2026-01-01.
  • Not on PyPI until the first publish (autlantic-billing).
  • Secrets stay on the server. Mobile apps use Checkout SDKs, not this package.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autlantic_billing-0.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

autlantic_billing-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: autlantic_billing-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for autlantic_billing-0.1.0.tar.gz
Algorithm Hash digest
SHA256 faa8be0537953f3b3896f312bd60cb659ccb7c582650f169a6b9d189a6acf47f
MD5 1cf90e58076be67b2e883f8d44eac2b5
BLAKE2b-256 79ce916b7b1dd9df498a9444d12084a86afb01a33083905e8fda099843a6dae3

See more details on using hashes here.

Provenance

The following attestation bundles were made for autlantic_billing-0.1.0.tar.gz:

Publisher: publish-python.yml on Autlantic/payments-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for autlantic_billing-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ac58b9a2121542ade63a829f67caacc80aa45aac1629e0b269958c3cfd09abc
MD5 70fc9112e54ed6d3fe90272fd7650e74
BLAKE2b-256 9cb1938cc979d6b1b3848a37e4bf2f0c5cdcbafb9a35ebe94bc90d71f87d7fd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for autlantic_billing-0.1.0-py3-none-any.whl:

Publisher: publish-python.yml on Autlantic/payments-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page