[prev in list] [next in list] [prev in thread] [next in thread]
List: python-announce-list
Subject: aspectlib 0.3.0
From: Ionel Cristian Maries <ionel.mc () gmail ! com>
Date: 2014-03-06 11:42:54
Message-ID: cd8e6b9a-8919-4056-992e-46f182c3ba61 () googlegroups ! com
[Download RAW message or body]
Hey everyone,
I'm pleased to announce the first public release of `aspectlib`.
It's on PyPI at https://pypi.python.org/pypi/aspectlib
`aspectlib` is an aspect-oriented programming, monkey-patch and decorators
library. It is useful when changing behavior of existing code is desired.
I've mainly created `aspectlib` because I needed:
* An easy way to instrumenting existing code for debugging, profiling and
other measurements.
* An easy way to write tests for and mock behavior in less flexible code.
An example:
import aspectlib
import aspectlib.debug
aspectlib.weave(
('socket.socket', 'socket._fileobject'),
aspectlib.debug.log(stacktrace=6), # show 6 frames
on_init=True
)
This makes debugging socket based protocols and apps a snap.
There are many other use cases. `aspectlib` is under development - any
feedback is welcome !
Thanks,
Ionel Cristian Mărieș
--
https://mail.python.org/mailman/listinfo/python-announce-list
Support the Python Software Foundation:
http://www.python.org/psf/donations/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic