Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #1657 > unrolled thread

Hunter v0.5 released

Started byIonel Cristian Mărieș <contact@ionelmc.ro>
First post2015-04-06 01:33 +0300
Last post2015-04-06 01:33 +0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python.announce


Contents

  Hunter v0.5 released Ionel Cristian Mărieș <contact@ionelmc.ro> - 2015-04-06 01:33 +0300

#1657 — Hunter v0.5 released

FromIonel Cristian Mărieș <contact@ionelmc.ro>
Date2015-04-06 01:33 +0300
SubjectHunter v0.5 released
Message-ID<mailman.62.1428316371.12925.python-announce-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python.announce


csiph-web