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


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

Hunter 0.2 Released

Started byIonel Cristian Mărieș <contact@ionelmc.ro>
First post2015-03-27 02:35 +0200
Last post2015-03-27 02:35 +0200
Articles 1 — 1 participant

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


Contents

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

#1646 — Hunter 0.2 Released

FromIonel Cristian Mărieș <contact@ionelmc.ro>
Date2015-03-27 02:35 +0200
SubjectHunter 0.2 Released
Message-ID<mailman.232.1427436029.10327.python-announce-list@python.org>
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

[toc] | [standalone]


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


csiph-web