Pytool

Latest version: v5.0.1

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

Scan your dependencies

Page 2 of 3

3.1.0

-----

- Add :class:`pytool.time.Timer` for easy timing of things.

3.0.1

-----

- Fix bug with setup.py which broke installs.

3.0.0

-----

- Changed to depend on simplejson (``>=3.2.0``) for the ``_asdict()`` and
``for_json()`` hooks. This may break backwards compatability.

2.4.1

-----

- Fix bug where ``for_json()`` hook was ignored on classes that subclass the
basic types.
- Fix bug where :func:`pytool.json.as_json` would leave a trailing space on
timestamps if there is no timezone associated with them.

2.4.0

-----

- Improve documentation.
- Add ``for_json()`` hook in :func:`pytool.json.as_json`.
- Add ``__repr__()`` to :class:`pytool.time.UTC` to make it prettier.
- Add support for ``_asdict()`` hook (implemented by :class:`namedtuple`) even
when not using :mod:`simplejson`.
- Fix :func:`pytool.time.is_dst` test.
- Add ``for_json()`` hook to :class:`pytool.proxy.DictProxy` and
:class:`pytool.proxy.ListProxy`.

2.3.2

-----

- Fix descriptor protocol in iteritems.

Page 2 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.