Larz โ€บ Python paywall

Add a paywall to your Python app in one line

A paywall shouldn't take a weekend. In Larz it's a decorator.

pip install larz
from larz import Larz
import larz.money as money
app = Larz(secret="...")
money.enable(app)

@app.paid("$19")            # one-off unlock
@app.get("/report")
def report(req):
    return "paid content"

QuickstartGitHubFree course

What "paywall" means in Larz

An unpaid visitor hitting a @app.paid route is automatically sent to checkout; when they come back they're entitled and served. Entitlements are keyed to the visitor (a logged-in account, an API key, or an anonymous session) and persisted in your database.

Beyond one-off unlocks

Built-in pages come free: pricing, a credits page, a customer portal, and a revenue dashboard.

FAQ

How do I add a paywall in Python?

Install Larz, call money.enable(app), and put @app.paid("$9") above any route. Larz handles checkout and access.

Does it support subscriptions?

Yes โ€” @app.paid("$9/mo", trial_days=7) creates a subscription with a free trial, auto-renewal, and a self-serve customer portal.