Prettyprinter

Latest version: v0.18.0

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

Scan your dependencies

Page 1 of 4

0.18.0

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

* `Improve prettyprinting of builtin bound methods. <https://github.com/tommikaikkonen/prettyprinter/pull/57>`_ by `anntzer <https://github.com/anntzer>`_
* `Fix test suite compatibility with hypothesis4. <https://github.com/tommikaikkonen/prettyprinter/pull/58>`_ by `anntzer <https://github.com/anntzer>`_
* `Use $COLORFGBG to help decide whether to use a dark or light style <https://github.com/tommikaikkonen/prettyprinter/pull/62>`_ by `crowsonkb <https://github.com/crowsonkb>`_
* `Truncate numpy arrays with ndim >= 2 so that the total printed does not exceed max_seq_len <https://github.com/tommikaikkonen/prettyprinter/pull/63>`_ by `crowsonkb <https://github.com/crowsonkb>`_
* Fixed ipython_repr_pretty extra raising an exception when printing Mock instances (GH 61)
* Added support for pretty printing types.SimpleNamespace (GH 60)
* Fixed dictionary pretty printing indentation when the value had a comment on the line above (GH 59)

0.17.0

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

* `Add prettyprinter for numpy ndarrays. <https://github.com/tommikaikkonen/prettyprinter/pull/47>`_ by `anntzer <https://github.com/anntzer>`_
* `Add helper to apply default config. <https://github.com/tommikaikkonen/prettyprinter/pull/46>`_ by `anntzer <https://github.com/anntzer>`_
* A number of docs and CI improvements: `43 <https://github.com/tommikaikkonen/prettyprinter/pull/43>`_, `44 <https://github.com/tommikaikkonen/prettyprinter/pull/44>`_, `45 <https://github.com/tommikaikkonen/prettyprinter/pull/45>`_ .Thanks `anntzer <https://github.com/anntzer>`_
* `Add support for functools.partialmethod. <https://github.com/tommikaikkonen/prettyprinter/pull/42>`_ by `anntzer <https://github.com/anntzer>`_
* `Fix typo in changelog. <https://github.com/tommikaikkonen/prettyprinter/pull/40>`_ Thanks `Vlad-Shcherbina <https://github.com/Vlad-Shcherbina>`_

0.16.0

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

* `Adds a new extra for numpy. <https://github.com/tommikaikkonen/prettyprinter/pull/39>`_ The extra currently registers pretty printers for numpy scalar types. Enable it with ``import prettyprinter; prettyprinter.install_extras(['numpy'])``. Thanks `anntzer <https://github.com/anntzer>`_
* `C-API named tuples are now automatically prettyprinted. <https://github.com/tommikaikkonen/prettyprinter/pull/38>`_ C-API named tuples are returned from expressions such as ``sys.flags``, ``time.strptime(...)``, and ``os.stat(...)``. The fieldname of each tuple element is annotated using a comment in the output.

0.15.0

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

This release brings bugfixes, an enhancement to pathlib prettyprinting (thanks `anntzer <https://github.com/anntzer>`_ ) and a nice performance boost. There was an redundant subtree call in a tree normalization procedure that caused exponential runtime, worsening quickly if data was highly nested. That extra call is now removed.

* `Fix exponential runtime in highly nested data <https://github.com/tommikaikkonen/prettyprinter/pull/34>`_
* `Fix infinite loop when rendering strings in highly nested data <https://github.com/tommikaikkonen/prettyprinter/pull/33>`_
* `Only split Path prettyprints on "/", not on "-" or other nonword chars. <https://github.com/tommikaikkonen/prettyprinter/pull/29>`_ , thanks `anntzer <https://github.com/anntzer>`_
* `Add vim swapfiles to gitignore <https://github.com/tommikaikkonen/prettyprinter/pull/30>`_ , thanks `anntzer <https://github.com/anntzer>`_
* `Fix typo <https://github.com/tommikaikkonen/prettyprinter/pull/31>`_ , thanks `anntzer <https://github.com/anntzer>`_

0.14.0

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

Most likely no breaking changes.

* Added definitions for ``pathlib`` standard library module thanks to GitHub user ``RazerM``
* Fixed unexpected error output inside Jupyter notebooks thanks to GitHub user ``jdanbrown``
* Fixed missing commas in ``setup.py`` requirements list

0.13.2

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

No breaking changes.

* Fixed the dataclasses pretty printer that had regressed after changes to the dataclasses API. Fix was contributed by GitHub user ``dangirsh``.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.