aspectlib is an aspect-oriented programming, monkey-patch and decorators library. It is useful when changing
behavior in existing code is desired. It includes tools for debugging and testing: simple mock/record and a complete
- Free software: BSD 2-Clause License
pip install aspectlib
Docs are hosted at readthedocs.org: python-aspectlib docs.
Weaving functions, methods, instances and classes is completed.
- "Concerns" (see docs/todo.rst)
aspectlib.weave doesn't work for your scenario please report a bug!
|Runtime:||Python 2.6, 2.7, 3.3, 3.4 or PyPy|
Python 3.2, 3.1 and 3.0 are NOT supported (some objects are too crippled).
- function_trace - extremely simple