{"library":"patchy","type":"library","category":null,"description":"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.","language":"python","status":"active","version":"2.10.0","tags":["patching","runtime modification","monkey patching","code manipulation"],"install":[{"cmd":"pip install patchy","imports":["from patchy import patch"]}],"homepage":null,"github":"https://github.com/adamchainz/patchy","docs":null,"changelog":"https://github.com/adamchainz/patchy/blob/main/CHANGELOG.rst","pypi":"https://pypi.org/project/patchy/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.5,"avg_import_s":0.06,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/patchy/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Tue Jun 30","last_verified":"Tue Jun 30","next_check":"Thu Jul 30","install_tag":null}}