Hunter 0.2 Released

Ionel Cristian Mărieș contact at ionelmc.ro
Fri Mar 27 01:35:05 CET 2015


Hello all,

I'm pleased to announce the second release for hunter:
https://pypi.python.org/pypi/hunter/0.2.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(hunter.Q(
    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.2
==============

* Added color support (and colorama as dependency).
* Added support for expressions in VarsPrinter.
* Improved error reporting for env variable activation (PYTHONHUNTER).
* Fixed env var activator (the .pth file) installation with setup.py
install (the “egg installs”) and setup.py develop/pip install -e (the “egg
links”).
* Breaking changes:
  * Renamed F to Q. And Q is now just a convenience wrapper for Query.
  * Renamed the PYTHON_HUNTER env variable to PYTHONHUNTER.
  * Changed When to take positional arguments.
  * Changed output to show 2 path components (still not configurable).
  * Changed VarsPrinter to take positional arguments for the names.

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