Skip to main content Switch to mobile version Pre-release This release is a pre-release and may not be stable for production use.
Python SDK for Vatly, the European Merchant of Record for AI, software and digital products
pip install vatly-api-python==0.1.0a6 Copy PIP instructions
Alpha — under active development. Every alpha release may include breaking changes. Lock the version you install and review the release notes before upgrading.
pip install --pre vatly-api-python --pre installs the latest alpha release.
For local development: uv sync --locked.
Get a test or live API key from the dashboard, under Settings > API. Keep keys server-side. The client reads VATLY_API_KEY by default.
from vatly import VatlyClient from vatly.models import CreateCheckoutRequest with VatlyClient() as vatly: checkout = vatly.checkouts.create( CreateCheckoutRequest( redirect_url_success="https://example.com/success", redirect_url_canceled="https://example.com/canceled", products=[{"id": "subscription_plan_abc123", "quantity": 1}], ) ) print(checkout.links.checkout_url.href) from vatly import AsyncVatlyClient async def read_orders(): async with AsyncVatlyClient() as vatly: async for order in vatly.orders.list_all({"limit": 100}): print(order.id, order.total) Pydantic models use snake_case attributes and accept Vatly's camelCase aliases. Dictionary inputs use wire-format camelCase keys. Request models and dictionaries are validated against the pinned specification before sending, then sent with aliases and only the fields you set. Fields the specification does not define are dropped, and None is sent as JSON null only where the specification allows null; elsewhere the field is omitted. Money values remain decimal strings, never floats.
Configuration and reliability
from vatly import VatlyClient, RequestOptions with VatlyClient(timeout=30, max_retries=2) as vatly: page = vatly.customers.list({"limit": 25}, options=RequestOptions(timeout=10)) Timeouts are seconds per httpx network phase per attempt, not a total request deadline; zero disables timeouts. Default base URL: https://api.vatly.com/v1. base_url, default_headers, and transport (an httpx transport) can be overridden. mode exposes test or live. Test helpers reject live keys before sending.
POST/PATCH/PUT/DELETE receive a UUID idempotency key, reused across retries. Set RequestOptions(idempotency_key="your-operation-id") to reuse a business-operation key across separate SDK calls. Set idempotency_key_generator=None to disable auto-keys. GETs and keyed mutations retry 429, 5xx, timeouts and connection errors with exponential backoff (250ms to 8s plus jitter), honoring numeric or HTTP-date Retry-After. A 503 with code: service_unavailable is answered before Vatly processes the request, so it is retried for every request, unkeyed mutations included, with the same key. Keyed 409 retries only details.idempotency_outcome == "in_progress". Never blindly retry an unknown idempotency outcome: read/reconcile the resource first. Unkeyed mutations do not retry. Redirects are not followed.
Vatly-Client-Info identifies SDK/runtime/OS/architecture. Pass client_info={"app": "MyApp/1.0", "framework": "Django/5"} to add sanitized identifiers, or client_info=False to suppress the SDK-generated header.
The User-Agent names every package involved, one vendor/package/version token each, starting with vatly/vatly-api-python/
client.add_version_string("vatly/vatly-fluent-python/0.1.0a4") # User-Agent: vatly/vatly-api-python/0.1.0a6 Python/3.12.8 httpx/0.28.1 vatly/vatly-fluent-python/0.1.0a4 Use your PyPI package name and its version constant. Whitespace in a token becomes -, and adding a token already present does nothing. A User-Agent in default_headers replaces the whole chain.
All API/transport errors extend VatlyError, with status, body, url, method, details, errors, code and retry_after. code is Vatly's machine-readable error code, such as service_unavailable, or None; new values may appear. Network errors retain the httpx exception as __cause__.
from vatly import VatlyClient, VatlyValidationError with VatlyClient() as vatly: try: customer = vatly.customers.create({"email": "buyer@example.com"}) except VatlyValidationError as error: print(error.errors) See getting started and resource guides, the generated method inventory, webhook guide, and production API reference.
Run .agents/setup in a fresh orb. It installs uv if missing, provisions Python 3.12, syncs locked dependencies and runs an import sanity check. Warm runs reuse uv's caches.
uv run python scripts/generate.py --check uv run ruff check . uv run ruff format --check . uv run mypy uv run pytest uv build uv run twine check dist/* See maintainer notes for spec regeneration, docs sync, and trusted publishing.
Released: Dec 4, 2026
Both files in this release have provenance metadata.
View provenance details
MIT View SPDX License List
ai billing merchant-of-record payments sdk vat vatly
Development Status 3 - Alpha
Programming Language Python :: 3
Release files for vatly-api-python 0.1.0a6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 174.0 kB
Release files / vatly_api_python-0.1.0a6.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Release files / vatly_api_python-0.1.0a6-py3-none-any.whl
Security for vatly-api-python 0.1.0a6
Both files in this release have been uploaded with provenance metadata.
With provenance vatly_api_python-0.1.0a6.tar.gz Dec 4, 2026
Attestation for vatly_api_python-0.1.0a6.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
0.1.0a6 This release
Dec 4, 2026 2 release files Full provenance
Nov 30, 2026 2 release files Full provenance
Nov 25, 2026 2 release files Full provenance
Nov 13, 2026 2 release files Full provenance
Nov 12, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 107c339











