srcmain.pydb.pymodels.pytasks.pytests/
main.pydb.py
1from fastapi import FastAPI, Depends
2from .db import Orders, session
3
4app = FastAPI()
5
6@app.get("/api/orders/{id}")
7async def get_order(id: int, db=Depends(session)):
8# cached, typed and tested
9order = await Orders.get(db, id)
10return order.model_dump()
✓ 128 tests passedcoverage 94 %Python 3.13
Software Development4 min read
Custom Software or Off-the-Shelf? How to Decide Without Regretting It
Off-the-shelf software is quick and cheap to start with; custom software fits your processes exactly. Here is when each path pays off, what people forget when comparing them, and how to start building your own without unnecessary risk.