A self-hosted, Python-native way to charge money
You don't need to hand-wire a payment SDK into your app. Larz makes payments a framework primitive — and stays provider-agnostic, so Stripe (or Paddle, PayPal, Paystack…) is a one-line swap.
pip install larz
The difference
With Flask or Django you install a payment library, model who paid, write webhook handlers,
and scatter if user.is_paid checks. With Larz you write one decorator:
@app.paid("$9/mo", trial_days=7)
@app.get("/pro")
def pro(req): ...
Larz handles checkout, entitlements, renewals, invoices, and a customer portal. You keep the data (it's your database), and you choose the processor.
Providers, not lock-in
Ships with Stripe, Paddle, Lemon Squeezy, Paystack, PayPal and crypto adapters — all via the
standard library, no SDKs. Point the provider's webhook at /larz/webhook/<provider>
and Larz verifies it, grants access, and records the invoice. Or
write your own in ~40 lines.
FAQ
Is Larz a payment processor?
No — Larz is a Python web framework. It builds paywalls, subscriptions and metering into your app and plugs into processors like Stripe, Paddle or PayPal.
Can I self-host?
Yes. Larz runs anywhere Python runs, with zero dependencies, and your billing data stays in your own database.
Do I still need a Stripe account?
To take real card payments, yes — Larz uses Stripe (or another provider) as the processor. In development a keyless mock provider works with no account.