๐Ÿ› Software ยท LARZ-401 · Session 7 of 8

Marketplace-Grade with the Stack

A real marketplace needs balanced books, receipts, trustworthy seller identity and product search. The Larz Stack covers all four.

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

A two-sided marketplace has needs a simple shop doesn't: money split between parties must reconcile, buyers want receipts, sellers need identity, and shoppers need search. The Larz Stack has a zero-dependency library for each.

Split payouts as balanced double-entry

from larz.contrib import ledger
ledger.enable(app)
# a $100 sale: seller gets 90, platform keeps a 10 fee
app.record_sale('Order 42', '100.00')
app.record_fee('Platform fee', '10.00')
app.ledger.is_balanced()             # books reconcile, every time

Receipts, identity and search

from larz.contrib import pdf; pdf.enable(app)
app.receipt('R-42', items=[('Order 42', 1, '100.00')])   # buyer PDF

from larzid import Identity           # self-certifying seller identity
from larzsearch import Index          # BM25 product search, no server

Takeaways

  • Model split payouts as double-entry with larzledger โ€” the books always balance.
  • larzpdf gives buyers real receipts; larzid gives sellers verifiable identity; larzsearch adds product search.
  • See it all in the Larz Stack course.

More in this course

Course home → · Browse all courses →