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


Groups > comp.lang.python.announce > #1646

Hunter 0.2 Released

From Ionel Cristian Mărieș <contact@ionelmc.ro>
Date 2015-03-27 02:35 +0200
Subject Hunter 0.2 Released
Newsgroups comp.lang.python.announce
Message-ID <mailman.232.1427436029.10327.python-announce-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

Hunter 0.2 Released Ionel Cristian Mărieș <contact@ionelmc.ro> - 2015-03-27 02:35 +0200

csiph-web