Larz › Build a SaaS in Python
Build a SaaS in Python, fast
Accounts, subscriptions, an admin, background work, and deploy — Larz gives you the whole SaaS backend, batteries included.
pip install larz
Everything a SaaS needs, built in
| You need | Larz gives you |
|---|---|
| Accounts | users, login, scrypt passwords, roles |
| Billing | plans, trials, invoices, portal |
| Data | an ORM with relationships & migrations |
| Admin | an auto-generated CRUD panel |
| APIs | validation, OpenAPI, webhooks |
| Background work | jobs, a cron scheduler, caching, email |
| Deploy | gunicorn, Docker, systemd recipes |
@app.login_required
@app.plan("pro")
@app.get("/app")
def app_home(req):
return "hi " + req.user.email
Runnable example:
examples/saas.py — a complete micro-SaaS with
accounts, a Pro plan, a portal and an admin, in ~60 lines. Learn it step-by-step in the
free course.FAQ
What's the fastest way to build a SaaS in Python?
Use Larz — it has accounts, subscription billing, an ORM, an admin panel, background jobs and deployment recipes built in, so you write product code, not plumbing.
Is Larz production-ready?
Larz apps are WSGI callables you run with gunicorn. It ships deployment recipes (Docker, systemd, nginx). See the deployment docs for the production checklist.