Larz โบ Python SaaS boilerplate
A Python SaaS boilerplate that's actually one file
Most SaaS boilerplates are a pile of services to configure. The Larz starter is a
complete, deployable SaaS in about 120 lines of one app.py.
git clone https://github.com/larz-scripter/larz-saas-starter
cd larz-saas-starter && pip install -r requirements.txt && python3 app.py
What you get out of the box
- User accounts (register / login) with scrypt passwords.
- A free tier and a
@app.plan("pro")upgrade with a 7-day trial. - A built-in billing portal at
/larz/accountand an admin at/admin. - A metered JSON API with per-key billing.
- Background email on signup, rate limiting and a bot filter.
Deploy it
gunicorn -c deploy/gunicorn.conf.py app:app
A Dockerfile, systemd unit and nginx config are included. Point your Stripe webhook at
/larz/webhook/stripe and you're live. The
free course builds it from scratch.
FAQ
Is the boilerplate free?
Yes โ it's MIT-licensed. Fork it, ship it, charge money.
What do I need to run it?
Python 3.7+ and Larz. In development it uses a keyless mock provider and sqlite, so no accounts or keys are required.