Topic
Worked Python backend exercises covering language design, asyncio, FastAPI, Django, SQLAlchemy, PostgreSQL, testing, and background-work correctness.
Practice items tagged with Python Backend Practical Labs.
Builds a FastAPI POST boundary with separate input/output models, forbidden extra fields, domain mapping, and a 201 response.
Implements bounded asyncio HTTP concurrency with one client, per-call deadlines, TaskGroup ownership, and deterministic cleanup.
Repairs a Django serialization path with select_related and prefetch_related, then locks the query shape with a regression test.
Uses SQLAlchemy version counters and an HTTP precondition to reject stale writes without silently overwriting newer state.
Builds a Celery task that survives timeout ambiguity, retries temporary failures, and records one durable business outcome.
Builds a frozen dataclass around Decimal with explicit scale, validation, arithmetic, ordering, and value equality.