Jnrbase

Latest version: v1.3.0

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

Scan your dependencies

Page 2 of 3

0.9.0

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

* As advertised, ``pager``'s default value for ``$LESS`` has been removed
* ``timedelta`` objects are now supported by ``json_datetime``
* Functionality that may be useful from the command line is now available via
``jnrbase`` command

0.8.0

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

* As advertised, ``debug``'s ``enter`` and ``exit`` have been removed
* ``context.env`` wrapper to temporarily alter environment variables
* ``graphviz`` is no longer required to build docs

0.7.0

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

* As advertised, support for naïve datetimes has been removed from ``iso_8601``
* ``Timing`` now uses a ``datetime.timedelta`` for its ``elapsed`` attribute
* ``Timing`` now uses ``human_timestamp`` for its verbose output
* ``debug``’s ``enter`` and ``exit`` have been renamed to ``on_enter`` and
``on_exit`` respectively
* The deprecated ``debug.enter`` and ``debug.exit`` names will be removed in
v0.8.0.
* httplib2_ v0.10, or newer, is required for ``jnrbase[net]``
* click_ is now required for ``jnrbase[template]``
* ``jnrbase[template]`` requires html2text_ 2016.5.29 or newer and Pygments
v2.1 or newer
* Tests now require pytest-randomly_

.. _click: https://pypi.org/project/click/
.. _html2text: https://pypi.org/project/html2text/
.. _httplib2: https://pypi.org/project/httplib2/
.. _pytest-randomly: https://pypi.org/project/pytest-randomly/

0.6.0

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

* This package is no longer considered an alpha, but given its new beta status
large changes may still be made
* ``jnrbase.config`` now uses Python’s configparser_ for loading config files
* ``jnrbase.config`` exposes ``jnrbase``’s ``parse_{datetime,{time,}delta}``
functions for value conversions
* Support for naïve datetimes will be removed in v0.7.0
* Tests now require pytest_
* configobj_ is no longer required

.. _configparser: http://docs.python.org/3/library/configparser.html
.. _pytest: https://pypi.org/project/pytest/
.. _configobj: https://pypi.org/project/configobj/

0.5.0

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

* Python 2 support has been removed… but, if you really need it file an issue_
or peg the ``jnrbase`` dependency to ``<0.5``
* Python 3.5 is the minimum supported version… but, if you desperately need
support for 3.{2..4} file an issue_
* Many functions now use keyword-only arguments for option setting arguments,
as defined in :PEP:`3102`

=========================== ====================================
Class/function Option
=========================== ====================================
``config.read_configs`` ``local``
``git.find_tag`` ``strict`` and ``git_dir``
``iso_8601.parse_datetime`` ``naive``
``pager.pager`` ``pager``
``template.highlight`` ``lexer`` and ``formatter``
``template.html2text`` ``width`` and ``ascii_replacements``
``template.regexp`` ``count`` and ``flags``
``timer.Timing`` ``verbose``
=========================== ====================================

* ``iso_8601``’s ``UTC`` class has been removed in favour of the standard
library’s ``datetime.timezone``
* Jinja2_ v2.9, or newer, is required for ``jnrbase[template]``

.. _Jinja2: https://pypi.org/project/Jinja2/

0.4.0

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

* New ``safe_hasattr`` to workaround Python 2 oddness
* ``parse_datetime`` can generate naïve timestamps
* Python 3.6 is now supported

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.