Announcing Larz 1.0 โ a money-native Python web framework
The framework that treats getting paid as a first-class feature โ not a plugin โ is now 1.0 and on PyPI.
Every web framework helps you serve a request. Almost none of them help you get
paid for it. You reach for Flask or FastAPI, then bolt on a payment SDK, hand-roll
webhook handlers, model who paid, and scatter if user.is_paid checks across your
routes. Larz makes money a framework primitive.
pip install larz
The one-line paywall
from larz import Larz
import larz.money as money
app = Larz(secret="...")
money.enable(app)
@app.paid("$9/mo", trial_days=7)
@app.get("/pro")
def pro(req):
return "members-only"
Checkout, the trial, renewals, invoices, entitlements and a customer portal are all handled. An unpaid visitor is sent to checkout; a paid one is served. Your billing data stays in your own database.
What ships in 1.0
- Payments โ
@app.paid,@app.metered,@app.plan, credit packs, a portal and an admin dashboard, across 10 providers (Stripe, Paddle, Lemon Squeezy, Paystack, PayPal, GemVault, Dodo, crypto, and a keyless mock for dev). - Accounts & API keys โ register/login with scrypt passwords, sessions, and plan-scoped API keys.
- An ORM โ models, relationships, migrations and transactions over sqlite.
- Templating, an auto-admin, background jobs, an API toolkit โ validation, OpenAPI docs, signed webhooks and blueprints.
- Zero dependencies โ all of it on the Python standard library.
Provider-agnostic by design
A provider is a ~40-line adapter with two methods. Point the processor's webhook at
/larz/webhook/<provider> and Larz verifies it, grants access and records the
invoice. Switch Stripe for Paddle without touching a route.
Try it in five minutes
Read the quickstart, take the free Larz course, or clone the SaaS starter. Larz is MIT-licensed and on PyPI.
FAQ
Is Larz production-ready?
Yes โ 1.0 ships with a Dockerfile, a gunicorn config, a systemd unit and an nginx config, plus 112 tests. Run it behind gunicorn like any WSGI app.
Does Larz have dependencies?
No. Larz is built entirely on the Python standard library; the only thing you install is Larz.
Which payment providers are supported?
Stripe, Paddle, Lemon Squeezy, Paystack, PayPal, GemVault, Dodo and crypto, plus a keyless mock provider for development โ and you can write your own in about 40 lines.
releasepayments