Tag Archives: #python
Unit, integration, and end-to-end tests, why pytest beats unittest, and how mocks, fixtures, setup, teardown, and test independence work in a FastAPI project.
Continue ReadingAsync I/O, fire-and-forget background tasks, a shared httpx client, and three global exception handlers in FastAPI — grounded in the FastURL project.
Continue ReadingLearn how to structure a production-ready FastAPI project using a layered architecture: Routers, Services, Repositories, and Dependency Injection.
Continue ReadingLearn how to turn requirements and a domain model into a clean REST API using FastAPI and Pydantic v2, using FastURL — a URL shortener — as a concrete case study.
Continue ReadingLearn how to design robust, domain-driven REST APIs using HTTP semantics and clean architecture principles, using Kubernetes as a practical case study.
Continue ReadingBuild a real async news aggregator step by step — fetching RSS feeds concurrently with aiohttp, the same code used in the Alfred open-source project. Each section adds one asyncio pattern: gather, TaskGroup, timeout, Semaphore, and format_news.
Continue ReadingMaster Python concurrency: understand when to use threads, processes, or asyncio — and why the event loop became the backbone of modern high-throughput applications.
Continue Reading