aspectlib 0.3.0

Ionel Cristian Maries at
Thu Mar 6 12:42:54 CET 2014

Hey everyone,

I'm pleased to announce the first public release of `aspectlib`. 
It's on PyPI at

`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
       ('socket.socket', 'socket._fileobject'),
       aspectlib.debug.log(stacktrace=6), # show 6 frames

This makes debugging socket based protocols and apps a snap.

There are many other use cases. `aspectlib` is under development - any 
feedback is welcome !

Ionel Cristian Mărieș

More information about the Python-announce-list mailing list