Articles
Building a Python script that reformats Python source with autopep8Working through a legacy codebase often feels like untangling extension cords behind a desk. Spacing drifts, indentation slips, and line lengths wander…
Building a Simple Statistics API with Python BaseHTTPServerWhen developers maintain open-source tools, exposing project statistics through a programmatic interface can transform how users and contributors interact with…
Crafting a Tailored Log Level Filter in Python's Standard LibraryPython's built-in logging module ships with a deceptively simple hook for shaping which records actually reach your handlers. The Filter class sits quietly…
Build a Python IP overlap checker for reliable security analysisComparing two lists of IP addresses sounds simple: read both files, find values that appear in each, and print the matches. In practice, production data…
Measuring network jitter with Python on Australian connectionsAustralia's broadband landscape is unlike anywhere else on Earth. The National Broadband Network rolls out a patchwork of fibre-to-the-premises,…
Python pathlib for Cleaner File Path Operations Across ProjectsFor years, my open-source work meant juggling the quirks of file paths across Linux servers, macOS workstations, and the occasional Windows box. DenyHosts,…
Counting source lines in Python across many programming languagesSoftware developers often want to know how much code lives in a project. Lines of code is not a perfect measure of productivity, yet it remains a useful signal…
Secure Temporary Files in Python Command-Line ToolsCommand-line utilities often need a working file: an SSH blocklist assembled before installation, an Apache log converted into a report, or a downloaded…
Building a Python Interface for Programmatic iptables ManagementIptables has been the cornerstone of Linux packet filtering since the early days of netfilter, but its imperative command-line interface can quickly become…
Writing a Python watcher that reacts to filesystem eventsModern Python developers rarely work in isolation from the operating system underneath their code. Whether you are managing log files, syncing directories, or…
