Hunter v0.5 released

Ionel Cristian Mărieș contact at ionelmc.ro
Mon Apr 6 00:33:13 CEST 2015


Hello all,

I'm pleased to announce hunter v0.5: https://pypi.python.org/pypi/hunter
/0.5.0


*What is Hunter?===============*

Hunter is a tracer tool, designed to be used for debugging or just to
understand how an application works. It's designed to be flexible and
extensible with custom actions or filters.

It prints the executed code from locations of your choosing and can
optionally print variables from the frames. It also colors the output if
you're in a terminal.


*Quick example-------------*

To show all the executed code from `posixpath`:

*  import hunter
  hunter.trace(module='posixpath')*

To show all the executed code from `posixpath` and a variable:




*  hunter.trace(    module='posixpath',
action=hunter.VarsPrinter('path')  )*

For convenience, you can also activate it via a `PYTHONHUNTER` environment
variable, eg:

  *PYTHONHUNTER="module='**posixpath'" python yourapp.py*

For more examples see:
https://github.com/ionelmc/python-hunter


*Changes in 0.5==============*

* Fixed `And` and `Or` "single argument unwrapping".
* Implemented predicate compression. Example: `Or(Or(a, b), c)` is
converted to `Or(a, b, c)`.
* Renamed the `Event.source` to `Event.fullsource`.
* Added `Event.source` that doesn't do any fancy sourcecode tokenization.
* Fixed `Event.fullsource` return value for situations where the tokenizer
would fail.
* Made the print function available in the PYTHONHUNTER env var payload.
* Added a `__repr__` for `Event`.


*Download page=============*

https://pypi.python.org/pypi/hunter


*Project page and issue tracker==============================*

https://github.com/ionelmc/python-hunter

Thanks,
-- Ionel Cristian Mărieș, http://blog.ionelmc.ro


More information about the Python-announce-list mailing list