All Guides

Back to Home

Browse all 8 topic guides covering various aspects of development, deployment, and best practices.

Why the usual Python decorator pattern is wrong and how to implement a better one, and the problems of monkey patching: applying patches safely, ordering, and automatic patching.

Getting mod_wsgi installed and pointed at the right Python, mod_wsgi-express, choosing between embedded and daemon mode, debugging under Apache, and free threading in 6.0.0.

python mod_wsgi apache wsgi

The parts of the WSGI specification people skip over: close() obligations, the write() callable, file_wrapper, streaming responses, and monitoring what an application really does.

python wsgi

Recipes and features of the wrapt package: stateful decorators, per-instance caches, lazy imports and patching, and how an object proxy behaves when the object resists.

python wrapt decorators

Building a multi user workshop environment on Kubernetes, using JupyterHub to spawn an interactive terminal, workshop notes and a dashboard for each attendee.

kubernetes jupyterhub docker openshift

Posts on wrapture, the Python package for monkey patching, testing and tracing built on wrapt. What it is, how it is used in unit tests, and how the same bindings trace a running application.

python wrapture testing tracing

Running Python inside Docker images and containers: custom Python versions, virtual environments, hosting and proxying WSGI applications, and the user and process ID issues that bite.