Advertisement
Open Source Projects by Phil Schwartz

Articles

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…
a Python chat server with sockets for LAN communicationLAN chat might sound like a relic, yet it remains useful. A backyard barbecue in Brisbane, a study session at the University of Melbourne, or a small developer…
Using Python’s itertools for efficient batch processingLarge datasets rarely need to be loaded into memory all at once. Whether the source is an Apache log, a CSV export, a database cursor, or a stream of API…
Building a Python random IP address generator for testingSoftware developers regularly need synthetic IP addresses when building network-aware applications. Whether the goal is stress-testing a firewall, validating a…
Exporting DenyHosts Data With Python's csv Module for Deeper AnalysisI built DenyHosts years ago to keep brute-force SSH attacks from hammering my servers, and the project has grown into something I still actively maintain.…
Crafting a Python Module for Apache Combined Log FormatAustralia's web infrastructure keeps humming along in data centres stretching from Perth to Brisbane, and somewhere in nearly every one of those facilities an…
Automating SSL Certificate Expiry Checks Across Multiple Hosts with PythonExpired TLS certificates remain one of the most common causes of preventable outages, and Australian businesses running e-commerce platforms or government…