โšก Software ยท LARZ-101 · Session 1 of 8

What Is a Money-Native Framework?

Why most web frameworks make you bolt payments on last โ€” and what changes when charging money is built into the core.

⏱ 8 min read📅 Updated 2026-07-25📊 Code examples throughout

Every web framework makes something easy. Flask makes routing easy. Django makes data easy. But when it's time to charge money โ€” a paywall, a subscription, a metered API โ€” you're on your own: wire up a payment library, store who paid, handle webhooks, and scatter if user.is_paid checks everywhere.

Larz is a from-scratch, zero-dependency Python web framework where payments are a first-class primitive. You write one decorator; the framework handles checkout, entitlements, and access.

Install it

pip install larz

The whole idea, in five lines

from larz import Larz
import larz.money as money
app = Larz(secret="dev")
money.enable(app)                 # payments on -- no keys needed in dev

@app.paid("$9/mo", trial_days=7)  # a subscription with a free trial
@app.get("/pro")
def pro(req):
    return "Pro content"

app.run()

Key takeaways

  • Larz treats payments, paywalls, subscriptions and metering as built-in decorators.
  • It's zero-dependency pure-Python โ€” nothing to install but Larz.
  • In development a keyless mock provider drives checkout, so you can build the whole flow without any payment account.

Over this course you'll build a real monetized app โ€” from a first paid route to a full API with accounts, an admin panel, and a deployment.

More in this course

Course home → · Browse all courses →