Hunter

Latest version: v3.7.0

Safety actively analyzes 630360 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 10

3.0.5

------------------

* Really fixed ``safe_repr`` so it doesn't cause side-effects (now isinstance/issubclass are avoided - they
can cause side-effects in code that abuses descriptors in special attributes/methods).

3.0.4

------------------

* Really fixed ``stream`` setup in actions (using ``force_colors`` without any ``stream`` was broken).
See: :obj:`~hunter.actions.ColorStreamAction`.
* Fixed ``__repr__`` for the :obj:`~hunter.predicates.From` predicate to include ``watermark``.
* Added binary wheels for Python 3.8.

3.0.3

------------------

* Fixed ``safe_repr`` on pypy so it's safer on method objects.
See: :class:`~hunter.actions.ColorStreamAction`.

3.0.2

------------------

* Fixed setting ``stream`` from ``PYTHONHUNTERCONFIG`` environment variable.
See: :class:`~hunter.actions.ColorStreamAction`.
* Fixed a couple minor documentation issues.

3.0.1

------------------

* Fixed issue with coloring missing source message (coloring leaked into next line).

3.0.0

------------------

* The package now uses setuptools-scm for development builds (available at https://test.pypi.org/project/hunter/). As a
consequence installing the sdist will download setuptools-scm.
* Recompiled cython modules with latest Cython. Hunter can be installed without any Cython, as before.
* Refactored some of the cython modules to have more typing information and not use deprecated property syntax.
* Replaced ``unsafe_repr`` option with ``repr_func``. Now you can use your custom repr function in the builtin actions.
**BACKWARDS INCOMPATIBLE**
* Fixed buggy filename handling when using Hunter in ipython/jupyter. Source code should be properly displayed now.
* Removed ``globals`` option from ``VarsPrinter`` action. Globals are now always looked up. **BACKWARDS INCOMPATIBLE**
* Added support for locals in ``VarsPrinter`` action. Now you can do ``VarsPrinter('len(foobar)')``.
* Always pass module_globals dict to linecache methods. Source code from PEP-302 loaders is now printed properly.
Contributed by Mikhail Borisov in `65 <https://github.com/ionelmc/python-hunter/pull/65>`_.
* Various code cleanup, style and docstring fixing.
* Added :func:`hunter.From` helper to allow passing in filters directly as keyword arguments.
* Added :meth:`hunter.event.Event.detach` for storing events without leaks or side-effects (due to prolonged references
to Frame objects, local or global variables).
* Refactored the internals of actions for easier subclassing.

Added the
:meth:`~hunter.actions.ColorStreamAction.filename_prefix`,
:meth:`~hunter.actions.ColorStreamAction.output`,
:meth:`~hunter.actions.ColorStreamAction.pid_prefix`,
:meth:`~hunter.actions.ColorStreamAction.thread_prefix`,
:meth:`~hunter.actions.ColorStreamAction.try_repr` and
:meth:`~hunter.actions.ColorStreamAction.try_source` methods
to the :class:`hunter.actions.ColorStreamAction` baseclass.
* Added :class:`hunter.actions.VarsSnooper` - a PySnooper-inspired variant of :class:`~hunter.actions.VarsPrinter`. It
will record and show variable changes, with the risk of leaking or using too much memory of course :)
* Fixed tracers to log error and automatically stop if there's an internal failure. Previously error may have been
silently dropped in some situations.

Page 5 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.