Humanfriendly

Latest version: v10.0

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

Scan your dependencies

Page 5 of 23

4.12

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

- Make :func:`humanfriendly.format_timespan()` accept
:class:`datetime.timedelta` objects (fixes `27`_).

- Add ``license`` key to ``setup.py`` script (pointed out to me in `coloredlogs
pull request 53 <https://github.com/xolox/python-coloredlogs/pull/53>`_).

.. _Release 4.12: https://github.com/xolox/python-humanfriendly/compare/4.11...4.12
.. _27: https://github.com/xolox/python-humanfriendly/issues/27

4.11

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

Added this changelog as requested in `23`_.

I've held off on having to keep track of changelogs in my open source
programming projects until now (2018) because it's yet another piece of
bookkeeping that adds overhead to project maintenance versus just writing the
damn code and throwing it up on GitHub :-p. However all that time I felt bad
for not publishing change logs and I knew that requests would eventually come
in and indeed in the past months I've received two requests in `23`_ and in
`issue 55 of coloredlogs <https://github.com/xolox/python-coloredlogs/issues/55>`_.

I actually wrote a Python script that uses the ``git tag`` and ``git
for-each-ref`` commands to automatically generate a ``CHANGELOG.rst``
"prototype" (requiring manual editing to clean it up) to bootstrap the contents
of this document. I'm tempted to publish that now but don't want to get
sidetracked even further :-).

.. _Release 4.11: https://github.com/xolox/python-humanfriendly/compare/4.10...4.11
.. _23: https://github.com/xolox/python-humanfriendly/issues/23

4.10

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

Added the :func:`humanfriendly.Timer.sleep()` method to sleep "no more than"
the given number of seconds.

.. _Release 4.10: https://github.com/xolox/python-humanfriendly/compare/4.9...4.10

4.9

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

Added the :func:`humanfriendly.tables.format_rst_table()` function to render
RST (reStructuredText) tables.

.. _Release 4.9: https://github.com/xolox/python-humanfriendly/compare/4.8...4.9

4.8

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

Added the :func:`humanfriendly.coerce_pattern()` function. I previously created
this for vcs-repo-mgr_ and now need the same thing in qpass_ so I'm putting it
in humanfriendly :-) because it kind of fits with the other coercion functions.

.. _Release 4.8: https://github.com/xolox/python-humanfriendly/compare/4.7...4.8
.. _vcs-repo-mgr: https://vcs-repo-mgr.readthedocs.io/
.. _qpass: https://qpass.readthedocs.io/

4.7

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

- Added support for background colors and 256 color mode (related to `issue 35
on the coloredlogs issue tracker <https://github.com/xolox/python-coloredlogs/issues/35>`_).

- Added tests for :func:`~humanfriendly.terminal.output()`,
:func:`~humanfriendly.terminal.message()` and
:func:`~humanfriendly.terminal.warning()`.

.. _Release 4.7: https://github.com/xolox/python-humanfriendly/compare/4.6...4.7

Page 5 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.