Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Vatly Django

Alpha — under active development. Every alpha release may include breaking changes. Pin exact versions during alpha.

Billing helpers for Django user and team models, built on Vatly Fluent Python. Vatly is the European Merchant of Record for AI, software and digital products. Python 3.10+; Django 5.2 LTS, 6.0 and 6.1 (6.x requires Python 3.12+).

INSTALLED_APPS = [*INSTALLED_APPS, "vatly_django"]
VATLY_SCOPE = "my-tenant/my-storefront"
VATLY_API_KEY = os.environ["VATLY_API_KEY"]
VATLY_WEBHOOK_SECRET = os.environ["VATLY_WEBHOOK_SECRET"]
VATLY_REDIRECT_URL_SUCCESS = "https://app.example.com/billing/success"
VATLY_REDIRECT_URL_CANCELED = "https://app.example.com/billing/canceled"
VATLY_CHECKOUTS = {"pro": {"products": [{"id": "subscription_plan_...", "quantity": 1}]}}

Install vatly-django==0.1.0a2, add path("billing/", include("vatly_django.urls")), run python manage.py migrate. For development, clone and run .agents/setup; uv.lock pins the exact SDK and Fluent versions from PyPI.

from uuid import uuid4
from vatly_django.billing import Billing

billing = Billing()
# user/team must already be authorized by your app. Save this key for retries.
url = billing.checkout(user, "pro", idempotency_key=uuid4())
# Bind an authorized existing Vatly customer to enable portal checkout identity.
billing.bind_customer(user, existing_customer_id)
portal_url = billing.portal(user)

Or inherit BillableMixin on your user/team model to get checkout, billing_portal, subscriptions, subscribed, cancel/resume/swap helpers. The mixin is abstract and adds no columns or auth-user coupling.

  • Host-owned checkout records assign orders/subscriptions; never customerId.
  • Signed webhooks atomically deduplicate, persist snapshots/links and enqueue outbox events.
  • Read-only admin; CSRF-protected, login-required checkout/portal POST views.
  • Raw SDK and async Fluent remain available for advanced integration.
  • Initial orders link to their subscriptions through each line's relatedResources.subscriptionId. A signed order.paid snapshot can carry a null subscriptionId; Billing.reconcile reports those lines as unresolved_line_ids so you can reconcile again later. It never guesses access from a plan or customer.

Guides for vatly-docs sync cover configuration, ownership, transactions, outbox delivery, testing and release. No tags/publication are performed by setup or CI.

.agents/setup
uv run pytest
uv run ruff check . && uv run ruff format --check . && uv run mypy
uv run python -m django makemigrations --check --dry-run --settings=tests.settings
uv build && uv run twine check dist/*

Metadata

Release files for vatly-django 0.1.0a3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vatly-django 0.1.0a3
File Size Uploaded Provenance Actions
vatly_django-0.1.0a3.tar.gz 29.2 kB With provenance Details for vatly_django-0.1.0a3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vatly-django 0.1.0a3
File Interpreter ABI Platform Actions
vatly_django-0.1.0a3-py3-none-any.whl Python 3 none any Details for vatly_django-0.1.0a3-py3-none-any.whl

Total release size: 44.0 kB

Release files / vatly_django-0.1.0a3.tar.gz

Download URL vatly_django-0.1.0a3.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
caa4a62d8a750020cbc9814c0add08fe61f66f9dd5d86fea832510cb6a055b14
BLAKE2b-256 checksum
How to use checksums
c0459539f594925940740291cedd803347038e08d5f00f5d7ebdb2d63fa33a42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Nov 13, 2026.

Transparency log

Release files / vatly_django-0.1.0a3-py3-none-any.whl

Download URL vatly_django-0.1.0a3-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48f4aa06ba606c14dbc23fd65e4a7dfa6d0b0edda8bf29ebddb1bba537103977
BLAKE2b-256 checksum
How to use checksums
d016f549008de8c96881f00eac2e78a00c2390be3261e045a4323a3d6df511d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Nov 13, 2026.

Transparency log

Security for vatly-django 0.1.0a3

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vatly_django-0.1.0a3.tar.gz

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 Nov 13, 2026.

Transparency log

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.

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