Python Professional

Everything that separates a script writer from a software engineer. These 33 tutorials cover pytest and TDD, type hints, Pydantic, databases and SQLAlchemy, web scraping, Flask and FastAPI, async and multiprocessing, Docker, CI/CD, and security basics. The milestone is a weather dashboard CLI that ties APIs, a database, and async together.

Python Profiling: Find Slow Code with cProfile and py-spy

Python profiling is how you find the slow parts of your code with evidence instead of a hunch. This guide shows you the three tools that matter, cProfile for the big picture, timeit for tiny measurements, and py-spy for a program that is already running, then walks you through reading a flame graph and fixing the hotspots for a real, measured speedup. “Measure. Do not tune for speed until you have measured, and even then do not unless one part ... Read More

FastAPI Capstone: Build, Test, and Ship a Real API

This FastAPI project is the capstone for Part 3: one small but real Application Programming Interface (API) that you build, test, containerize, gate behind CI, and deploy to a public URL. It is a bookmarks service (sign up, log in, save links, list them with pagination), the kind of thing you could actually put your name on and hand to an interviewer. “Code without tests is broken as designed.” Jacob Kaplan-Moss, Django co-creator Last Updated: July 2026 | Tested on: ... Read More

FastAPI Authentication: OAuth2, JWT, and Sessions Done Right

FastAPI authentication is the part everyone needs and almost nobody explains from the ground up. This post builds a real login system step by step: you will hash passwords the right way, issue and verify JSON Web Tokens (JWTs), wire up an OAuth2 login flow with OAuth2PasswordBearer, protect routes with a shared get_current_user dependency, and add scopes and roles. Every block is tested and runnable. “Never roll your own crypto, and never store a password you could read back.” Last ... Read More