Patchy
JSON →Patchy is a Python library that allows patching the inner source code of Python functions at runtime. Unlike traditional monkey patching, which replaces function objects, Patchy modifies the function's `__code__` attribute, ensuring that all references to the function (even those imported elsewhere) reflect the new behavior. It achieves this by using the standard `patch` command-line utility to apply diffs to the function's source code. The current version is 2.10.0, and it generally follows a release cadence tied to bug fixes and feature enhancements, compatible with Python 3.9 to 3.14.
Traffic · last 30 days ↑229% vs prev 7d
total hits 32
actors 9 distinct systems
last hit 2d ago PerplexityBot
top countries 🇸🇬 Singapore · 🇩🇪 Germany · 🇫🇷 France · 🇺🇸 United States · 🇨🇦 Canada
Resources
packagepypi.org/project/patchy/ ↗
API endpoints
full doc /v1/registry/patchy
install /v1/registry/patchy/install
compatibility /v1/registry/patchy/compatibility