Larz › Membership site

Build a membership site in Python

Recurring memberships with gated content, accounts and a self-serve portal.

pip install larz
auth.enable(app)
app.money.plan("member", "$5/mo", trial_days=7)

@app.login_required
@app.plan("member")
@app.get("/members")
def members(req):
    return "Members-only content for " + req.user.email

QuickstartGitHubFree course

Members sign up, get a free trial, and manage their subscription at /larz/account. You gate any route with @app.plan("member"). Add tiers, coupons, and renewal reminders as you grow.

FAQ

How do I build a membership site in Python?

With Larz: enable auth, define a plan (app.money.plan), and gate member content with @app.login_required + @app.plan(...). Trials, renewals and a customer portal are built in.