Python articles

Brought to you by Honeybadger—simple application monitoring that helps developers move fast and fix things.

A Starlette middleware guide for FastAPI and Python developers

Starlette middlewares let you apply logging, auth, and CORS across every route in a web app without duplicating code. This article covers Starlette's built-in middlewares, building custom ones with pure ASGI and BaseHTTPMiddleware, and the execution-order rules that keep your FastAPI applications secure and fast. Read on to learn how to build and order Starlette middlewares the right way.

Building command-line applications in Python

Dive into a comprehensive guide on implementing command-line applications in Python. This tutorial uses the argparse module to explain how arguments, flags, and options work in a command-line application by building a BMI calculator app and implementing the Linux head command in Python.

Beginners guide to software testing in Python

Discover the art of software testing in Python! Uncover software testing fundamentals, explore diverse testing methodologies, and master essential best practices. Dive into a comprehensive tutorial on leveraging the power of the unittest module to conduct efficient and effective unit testing in Python.