Python-hunt

Latest version: v0.0

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

Scan your dependencies

Page 3 of 4

0.5.0

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

* Fixed :class:`And` and :class:`Or` "single argument unwrapping".
* Implemented predicate compression. Example: ``Or(Or(a, b), c)`` is converted to ``Or(a, b, c)``.
* Renamed the :obj:`Event.source` to :obj:`Event.fullsource`.
* Added :obj:`Event.source` that doesn't do any fancy sourcecode tokenization.
* Fixed :obj:`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 :class:`Event`.

0.4.0

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

* Disabled colors for Jython (contributed by Claudiu Popa in `12 <https://github.com/ionelmc/python-hunter/pull/12>`_).
* Test suite fixes for Windows (contributed by Claudiu Popa in `11 <https://github.com/ionelmc/python-hunter/pull/11>`_).
* Added an introduction section in the docs.
* Implemented a prettier fallback for when no sources are available for that frame.
* Implemented fixups in cases where you use action classes as a predicates.

0.3.1

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

* Forgot to merge some commits ...

0.3.0

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

* Added handling for internal repr failures.
* Fixed issues with displaying code that has non-ascii characters.
* Implemented better display for ``call`` frames so that when a function has decorators the
function definition is shown (instead of just the first decorator).
See: `8 <https://github.com/ionelmc/python-hunter/issues/8>`_.

0.2.1

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

* Added missing color entry for exception events.
* Added :obj:`Event.line` property. It returns the source code for the line being run.

0.2.0

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

* Added color support (and ``colorama`` as dependency).
* Added support for expressions in :class:`VarsPrinter`.
* Breaking changes:

* Renamed ``F`` to :obj:`Q`. And :obj:`Q` is now just a convenience wrapper for :class:`Query`.
* Renamed the ``PYTHON_HUNTER`` env variable to ``PYTHONHUNTER``.
* Changed :class:`When` to take positional arguments.
* Changed output to show 2 path components (still not configurable).
* Changed :class:`VarsPrinter` to take positional arguments for the names.
* 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").

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.