Skip to main content

python

Browse all articles, tutorials, and guides about python

7posts

Guides

Posts

Security
2026-05-05|11 min read

Mini Shai-Hulud: PyTorch Lightning Just Stole Your CI Secrets

On April 30 a supply chain worm pushed malicious versions of PyTorch Lightning (10M+ downloads/month), intercom-client, and intercom-php to PyPI, npm, and Packagist in 48 hours. It steals every credential in your CI and propagates through your own GitHub tokens. Here is what to check and what to rotate.

Python
2025-06-18|7 min read

How do I Get Flask to Run on Port 80?

Running Flask on port 80 requires special permissions since port 80 is a privileged port. Learn the different approaches to running Flask on port 80, from using sudo to setting up reverse proxies with Nginx.

Python
2025-02-08|6 min read

Why Python open() Does Not Create a File If It Doesn't Exist

Learn why open() in read mode fails on non-existent files, which modes create files automatically, and how to handle file creation properly in Python.

Python
2024-11-28|9 min read

Lightweight Alternatives to Python Twisted for Async Networking

Explore modern, lightweight alternatives to Twisted for building asynchronous network applications in Python, including asyncio, aiohttp, Trio, and more.

Python
2024-09-15|6 min read

Finding Local IP Addresses Using Python's stdlib

Learn how to find the local IP address of your machine using only Python's standard library. No third-party packages required.

Python
2024-08-11|6 min read

What Is the Quickest Way to HTTP GET in Python?

Need to make a quick HTTP GET request in Python? Here's how to do it with standard libraries and third-party tools, including pros and tradeoffs.