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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faa8be0537953f3b3896f312bd60cb659ccb7c582650f169a6b9d189a6acf47f
|
|
| MD5 |
1cf90e58076be67b2e883f8d44eac2b5
|
|
| BLAKE2b-256 |
79ce916b7b1dd9df498a9444d12084a86afb01a33083905e8fda099843a6dae3
|
Provenance
The following attestation bundles were made for autlantic_billing-0.1.0.tar.gz:
Publisher:
publish-python.yml on Autlantic/payments-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autlantic_billing-0.1.0.tar.gz -
Subject digest:
faa8be0537953f3b3896f312bd60cb659ccb7c582650f169a6b9d189a6acf47f - Sigstore transparency entry: 2757451134
- Sigstore integration time:
-
Permalink:
Autlantic/payments-sdk@d9ab8b17615e31220fc7150ed8ec7d9182f9e818 -
Branch / Tag:
refs/tags/sdks/python/v0.1.0 - Owner: https://github.com/Autlantic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@d9ab8b17615e31220fc7150ed8ec7d9182f9e818 -
Trigger Event:
push
-
Statement type:
File details
Details for the file autlantic_billing-0.1.0-py3-none-any.whl.
File metadata
- Download URL: autlantic_billing-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ac58b9a2121542ade63a829f67caacc80aa45aac1629e0b269958c3cfd09abc
|
|
| MD5 |
70fc9112e54ed6d3fe90272fd7650e74
|
|
| BLAKE2b-256 |
9cb1938cc979d6b1b3848a37e4bf2f0c5cdcbafb9a35ebe94bc90d71f87d7fd6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autlantic_billing-0.1.0-py3-none-any.whl -
Subject digest:
9ac58b9a2121542ade63a829f67caacc80aa45aac1629e0b269958c3cfd09abc - Sigstore transparency entry: 2757451246
- Sigstore integration time:
-
Permalink:
Autlantic/payments-sdk@d9ab8b17615e31220fc7150ed8ec7d9182f9e818 -
Branch / Tag:
refs/tags/sdks/python/v0.1.0 - Owner: https://github.com/Autlantic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@d9ab8b17615e31220fc7150ed8ec7d9182f9e818 -
Trigger Event:
push
-
Statement type: