Ihook

Latest version: v0.2

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2

- Improve support for unhooking / un-patching.
- Improve test cases
- Refactor hard-code strings.

0.1.1

- Bugfix: When iterate the modules in `register` function, need to copy the keys.
- Bugfix for `__iter__` method of `ModuleInfo`, and improve the error message of registering hooks and `__repr__` string of `ModuleInfo`.
- Bugfix and improve test cases.

0.1

Features

- Hook for modules that are imported.
- Support for case-sensitive and case-insensitive module names.
- Chain multiple hooks for the same or different modules.
- Handle hooks for sub-packages and namespace packages.

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.