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.

Cashier-style billing for Django on Vatly Fluent Python. 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 after publication, add path("billing/", include("vatly_django.urls")), run python manage.py migrate. Before publication, clone and run .agents/setup; locked uv sources use versioned SDK/Fluent wheels from vendor/ without cross-private-repo credentials.

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.
  • Pending core PR #2910: historical initial subscription_plan lines cannot identify a subscription. Billing.reconcile reports this instead of guessing/granting access.

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.0a2

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.0a2
File Size Uploaded Provenance Actions
vatly_django-0.1.0a2.tar.gz 76.5 kB With provenance Details for vatly_django-0.1.0a2.tar.gz

Built distribution (wheel)

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

Total release size: 91.2 kB

Release files / vatly_django-0.1.0a2.tar.gz

Download URL vatly_django-0.1.0a2.tar.gz
Size 76.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f2dd29f89cb10f8286954d6b992b9772c3ff6d839de00d8973692149fb7481d2
BLAKE2b-256 checksum
How to use checksums
b2b39918fe659464bf6678a142927f5158aa4e758c5b3534cb299c1d510506a0
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 12, 2026.

Transparency log

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

Download URL vatly_django-0.1.0a2-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
17a7a7eed71377cfaad08964faf327def5e9b4df2b9370130f8e9e46275b6797
BLAKE2b-256 checksum
How to use checksums
0e6e131d8a23649d6e5d204bc4fa5c8244bfb860ab36e7988a9894dbbea4887b
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 12, 2026.

Transparency log

Security for vatly-django 0.1.0a2

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.0a2.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 12, 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