Python

Structured concurrency & Go · article
Hierarchical rate limiting with Redis sorted sets · article
Running only a single instance of a process · article
Injecting Pytest fixtures without cluttering test signatures · article
Explicit method overriding with @typing.override · article
Quicker startup with module-level __getattr__ · article
Shades of testing HTTP requests in Python · article
Taming parametrize with pytest.param · article
Log context propagation in Python ASGI apps · article
Please don't hijack my Python root logger · article
TypeIs does what I thought TypeGuard would do in Python · article
Patching pydantic settings in pytest · article
Eschewing black box API calls · article
Annotating args and kwargs in Python · article
Statically enforcing frozen data classes in Python · article
Debugging dockerized Python apps in VSCode · article
Banish state-mutating methods from data classes · article
Taming conditionals with bitmasks · article
Memory leakage in Python descriptors · article
Unix-style pipelining with Python's subprocess module · article
Enabling repeatable lazy iterations in Python · article
Escaping the template pattern hellscape in Python · article
Python dependency management redux · article
Implementing a simple traceroute clone in Python · article
Sorting a Django queryset by a custom sequence of an attribute · article
Deduplicating iterables while preserving order in Python · article
Pushing real-time updates to clients with Server-Sent Events (SSEs) · article
Tinkering with Unix domain sockets · article
Signal handling in a multithreaded socket server · article
Switching between multiple data streams in a single thread · article