{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/6"}],"enrichment":{"capability":"zope.hookable provides a mechanism to create callable objects that can be dynamically replaced at runtime, allowing all references to them to see the change immediately.","skillfed_tags":["plugin-pattern","runtime-replacement"],"use_cases":["Framework authors providing default implementations that plugins can override without modifying call sites.","Testing scenarios where you need to inject mock or stub implementations into code that has already imported a function.","Loose coupling in event-driven systems where handlers can be swapped at runtime.","Configuration-driven behavior where the active implementation changes based on runtime state or settings."],"what_it_does":"zope.hookable is a utility for creating callable objects that support dynamic replacement via a sethook method. When you decorate a function with @hookable or wrap it, all code that calls it\u2014including code that imported it before the hook was set\u2014will immediately see the replacement implementation. This pattern is useful in frameworks and plugin systems where you want to provide default behavior but allow later customization without requiring callers to be aware of the change.\n\nThe package has no runtime dependencies and provides a thin, efficient layer over Python's callable protocol. It's part of the Zope ecosystem but can be used standalone. It supports Python 3.10 through 3.14 and both CPython and PyPy, with precompiled wheels available for common platforms.","worth_installing":"Yes, if you need dynamic function replacement with global visibility. The package is stable, actively maintained, has no known vulnerabilities, and carries minimal overhead. The main caveat is verifying that ZPL-2.1 is compatible with your project's licensing model, and confirming that the license treatment uncertainty does not create compliance risk for your use case."},"id":"zope-hookable","links":{"html":"https://skillfed.io/packages/zope-hookable","md":"https://skillfed.io/packages/zope-hookable.md","pypi":"https://pypi.org/project/zope-hookable/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-18","license_spdx":"ZPL-2.1","license_treatment":"unclear","name":"zope.hookable","python_support":"supports_current","summary":"Zope hookable"},"popularity":{"monthly_downloads":1008039,"position":4520,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"8.2"}
