Larz › Python subscription billing
Subscription billing in Python, done right
Recurring revenue with trials, renewals, invoices and a customer portal — without gluing three libraries together.
pip install larz
app.money.plan("pro", "$9/mo", features=["A","B"], trial_days=7)
@app.plan("pro")
@app.get("/dashboard")
def dash(req): ...
The whole lifecycle is built in
| Feature | How |
|---|---|
| Free trial | trial_days=7 |
| Renewal | auto — subscription expires and re-prompts |
| Cancel | app.money.cancel(subject, "plan:pro") |
| Invoices/receipts | recorded per payment, shown in the portal |
| Customer portal | /larz/account — no code |
| Events | @app.money.on_grant / on_revoke |
Combine on_grant with the scheduler and email for
renewal reminders and dunning.
FAQ
How do I bill subscriptions in Python?
Define a plan with app.money.plan(...), gate routes with @app.plan(...). Larz handles trials, renewals, cancellation, invoices and a customer portal.
Is there a customer portal?
Yes — Larz serves /larz/account where customers manage their subscription, view invoices and top up credits, with no code from you.