Larz › SaaS revenue analytics in Python
Your revenue metrics, self-hosted
MRR, churn and LTV shouldn't require a third-party analytics SaaS reading your Stripe. Larz computes them from your own data.
pip install larz
import larz.analytics as analytics
analytics.enable(app, token="secret") # -> /larz/admin/revenue
m = app.money.metrics()
# {"mrr_cents":..., "arr_cents":..., "arpu_cents":..., "ltv_cents":..., "churn_rate":...}
What you get
- MRR & ARR — monthly recurring revenue and annual run-rate, normalized across monthly/annual/weekly plans.
- ARPU & LTV — average revenue per user and estimated lifetime value.
- Churn — estimated from subscriptions lost to failed renewals.
- A 30-day revenue chart and a per-plan breakdown, rendered as inline SVG.
It's your data, in your app, on your server — no external analytics platform, no monthly fee.
FAQ
Do I need Baremetrics or ProfitWell?
No — Larz computes MRR, churn, ARPU and LTV from your own payment data and serves the dashboard itself.
How is churn calculated?
It's estimated from subscriptions dropped after failed renewals (dunning) over the trailing 30 days; LTV follows as ARPU ÷ churn.