Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ionelmc/python-aspectlib
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 capture/replay framework.
https://github.com/ionelmc/python-aspectlib
aop aspect-oriented-framework aspect-oriented-programming debugging decorator decorators monkey-patching python
Last synced: 5 days ago
JSON representation
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 capture/replay framework.
- Host: GitHub
- URL: https://github.com/ionelmc/python-aspectlib
- Owner: ionelmc
- License: bsd-2-clause
- Created: 2014-02-17T10:14:32.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T15:47:37.000Z (4 months ago)
- Last Synced: 2024-12-01T06:05:21.596Z (12 days ago)
- Topics: aop, aspect-oriented-framework, aspect-oriented-programming, debugging, decorator, decorators, monkey-patching, python
- Language: Python
- Homepage:
- Size: 720 KB
- Stars: 120
- Watchers: 8
- Forks: 11
- Open Issues: 15
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
- awesome-network-stuff - **78**星 - 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 capture/replay framework. (<a id="58b6684347a223e01d4d76d9ca185a88"></a>Replay&&重播)
README
========
Overview
========.. start-badges
.. list-table::
:stub-columns: 1* - docs
- |docs|
* - tests
- |github-actions| |coveralls| |codecov|
* - package
- |version| |wheel| |supported-versions| |supported-implementations| |commits-since|
.. |docs| image:: https://readthedocs.org/projects/python-aspectlib/badge/?style=flat
:target: https://readthedocs.org/projects/python-aspectlib/
:alt: Documentation Status.. |github-actions| image:: https://github.com/ionelmc/python-aspectlib/actions/workflows/github-actions.yml/badge.svg
:alt: GitHub Actions Build Status
:target: https://github.com/ionelmc/python-aspectlib/actions.. |coveralls| image:: https://coveralls.io/repos/github/ionelmc/python-aspectlib/badge.svg?branch=main
:alt: Coverage Status
:target: https://coveralls.io/github/ionelmc/python-aspectlib?branch=main.. |codecov| image:: https://codecov.io/gh/ionelmc/python-aspectlib/branch/main/graphs/badge.svg?branch=main
:alt: Coverage Status
:target: https://app.codecov.io/github/ionelmc/python-aspectlib.. |version| image:: https://img.shields.io/pypi/v/aspectlib.svg
:alt: PyPI Package latest release
:target: https://pypi.org/project/aspectlib.. |wheel| image:: https://img.shields.io/pypi/wheel/aspectlib.svg
:alt: PyPI Wheel
:target: https://pypi.org/project/aspectlib.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/aspectlib.svg
:alt: Supported versions
:target: https://pypi.org/project/aspectlib.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/aspectlib.svg
:alt: Supported implementations
:target: https://pypi.org/project/aspectlib.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-aspectlib/v2.0.0.svg
:alt: Commits since latest release
:target: https://github.com/ionelmc/python-aspectlib/compare/v2.0.0...main.. end-badges
``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
capture/replay framework.* Free software: BSD 2-Clause License
Installation
============::
pip install aspectlib
You can also install the in-development version with::
pip install https://github.com/ionelmc/python-aspectlib/archive/main.zip
Documentation
=============Docs are hosted at readthedocs.org: `python-aspectlib docs `_.
Implementation status
=====================Weaving functions, methods, instances and classes is completed.
Pending:
* *"Concerns"* (see `docs/todo.rst`)
If ``aspectlib.weave`` doesn't work for your scenario please report a bug!
Requirements
============:OS: Any
:Runtime: Python 2.6, 2.7, 3.3, 3.4 or PyPyPython 3.2, 3.1 and 3.0 are *NOT* supported (some objects are too crippled).
Similar projects
================* `function_trace `_ - extremely simple