NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #440 most downloaded on PyPI
Human friendly output for text interfaces using Python
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 12 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
118 releases · first in 2013
This fixes #44 by merging #45 .
Noteworthy changes:
Merged pull request #45 to resolve the issue caused by the conditional pyreadline requirement on Windows not supporting Python 3.9+.
Updated the readme to use Python 3 in the example (reported in issue #56). Also added a mention of the humanfriendly --demo command.
Removed the humanfriendly.compat.unittest alias that presumably no-one is using at this point; it had been rendered useless quite a long time ago (requested in issue #53).
Internal changes:
Merged pull request #54 which migrates the humanfriendly project from Travis CI to GitHub Actions and from Coveralls.io to Codecov.
Fixed a deprecation warning concerning setup.cfg and some Sphinx documentation errors.
One column per quarter.
Release 9.2: Sphinx extension metadata
Release 9.2: Sphinx extension metadata
Maintenance release:
Merged pull request #46 which fixes several flake8 warnings.
Merged pull request #49 which marks Python 3.9 support final.
Merged pull request #51 which helps to stabilize the test suite.
Merged pull request #52 which updates the humanfriendly.sphinx module to include Sphinx extension metadata that has become mandatory in a recent Sphinx release. After merging the pull request I added additional metadata including the version.
Add humanfriendly.compat.on_macos()
Add humanfriendly.compat.on_macos()
Added ~humanfriendly.compat.on_macos() function to detect Apple MacOS (I need this in an upcoming coloredlogs release and don't want to have to think about how to detect MacOS again in the future 😇).
See the changelog update for details. This fixes #30 , #40 and #43 .
The major version number was bumped because the bug fix for ~humanfriendly.text.pluralize() is backwards incompatible and (even though this seems like very "cosmetic" functionality) version numbers are cheap, so who cares 😉.
Bug fixes:
Changed ~humanfriendly.format_number() to properly support negative numbers (as suggested in issue #40).
Changed ~humanfriendly.text.pluralize() to generate "1.5 seconds" instead of "1.5 second" (as suggested in issue #43).
Enhancements:
Enhanced ~humanfriendly.text.concatenate() to support conjunction and serial_comma keyword arguments (as suggested in issue #30).
Added ~humanfriendly.text.pluralize_raw() to select singular or plural form without prefixing the count to the text that is returned.
The major version number was bumped because the bug fix for pluralize() is backwards incompatible and (even though this seems like very “cosmetic” functionality) version numbers are cheap, so who cares 😉.
Bug fixes:
Changed format_number() to properly support negative numbers (as suggested in issue #40 ).
Changed pluralize() to generate “1.5 seconds” instead of “1.5 second” (as suggested in issue #43 ).
Enhancements:
Enhanced concatenate() to support conjunction and serial_comma keyword arguments (as suggested in issue #30 ).
Added pluralize_raw() to select singular or plural form without prefixing the count to the text that is returned.
Release 8.2: Simple case insensitive dictionaries
Release 8.2: Simple case insensitive dictionaries
Added a simple case insensitive dictionary implementation, for details refer to the new humanfriendly.case module.
Release 8.1: Improved output capturing
Release 8.1: Improved output capturing
Enhancements:
Make it possible to opt out of the output capturing that humanfriendly.testing.run_cli() sets up by default.
Improve feature parity between humanfriendly.testing.CaptureOutput and my capturer package to the point where most of the humanfriendly test suite can now run without capturer.
Internal changes:
Refactored the test suite to import all names separately instead of referring to identifiers via their modules (my preferences have changed since this code was written a long time ago).
The work on spinners was prompted by the following: xolox/python-executor#2
The work on spinners was prompted by the following:
xolox/python-executor#2
Everything else was me going mad on a refactoring spree 😇
This release is backwards incompatible in several ways, see the notes below.
Enhancements:
Adopt functools.wraps() to make decorator functions more robust.
Make the ~humanfriendly.terminal.spinners.Spinner class more customizable. The interval at which spinners are updated and the characters used to draw the animation of spinners can now be customized by callers. This was triggered by executor issue #2.
Note
The text cursor hiding behavior of spinners has been removed because it was found to be problematic (sometimes the text cursor would be hidden but not made visible again, which is disorienting to say the least).
Improve test skipping based on exception types.
The humanfriendly.testing.TestCase class was originally created to enable skipping of tests that raise specific exception types on Python 2.6. This involved patching test methods, which had the unfortunate side effect of generating confusing pytest output on test failures.
Since then unittest2 was integrated which provided real skipping of tests however removing the old test skipping support from the humanfriendly.testing module would have resulted in a backwards incompatible change, so I never bothered. I've now decided to bite the bullet and get this over with:
I've implemented an alternative (finer grained) strategy based on a decorator function that applies to individual test methods, for details see humanfriendly.testing.skip_on_raise().
I've removed the test method wrapping from the humanfriendly.testing.TestCase class.
Note
This change is backwards incompatible, in fact it breaks the test suites of two other projects of mine (executor and vcs-repo-mgr) because they depend on the old test method wrapping approach. Both test suites will need to be migrated to the ~humanfriendly.testing.skip_on_raise() decorator.
Internal changes:
The "deprecated imports" feature provided by humanfriendly.deprecation has been adopted to clean up the maze of (almost but not quite) cyclic import dependencies between modules.
HTML to ANSI functionality has been extracted to a new humanfriendly.terminal.html module.
Support for spinners has been extracted to a new humanfriendly.terminal.spinners module.
The use of positional arguments to initialize ~humanfriendly.terminal.spinners.Spinner objects has been deprecated using the new humanfriendly.deprecation.deprecated_args() decorator function.
Release 7.3: Support for deprecating positional arguments
Release 7.3: Support for deprecating positional arguments
Enhancements:
Added the humanfriendly.deprecation.deprecated_args() decorator function which makes it easy to switch from positional arguments to keyword arguments without dropping backwards compatibility.
Note
I'm still working on the humanfriendly 8.0 release which was going to break backwards compatibility in several ways if it wasn't for the tools provided by the new humanfriendly.deprecation module.
Release 7.2: Support for deprecated imports
Release 7.2: Support for deprecated imports
Enhancements:
Support for backwards compatible aliases that emit deprecation warnings (humanfriendly.deprecation).
Note
I'm currently working on several large refactorings that involve moving things around between modules and dreaded having to extend the existing maze of (almost but not quite) cyclic import dependencies between modules. This new functionality will be adopted to untangle the existing maze in the upcoming humanfriendly 8.0 release, which bumps the major version number due to this very large change in how backwards compatibility is implemented. It is my hope that this new functionality will prove to be robust enough to unburden me from the less elegant aspects of preserving backwards compatibility 😁.
Documentation:
Get rid of broken references and noise in the online documentation once and for all:
Sphinx was emitting a screen full of warnings about unknown references. These were bothering me because testing the integration between Sphinx and humanfriendly.deprecation involved lots of broken references as well.
Additionally the humanfriendly.compat module introduced a lot of noise into the generated documentation because imported classes and their members were being included in the documentation, this is now also fixed.
Finally I decided to start using sphinx-build -nW to complain loudly when even just one broken reference is found. This should encourage the discipline to never introduce broken references again!
Tests:
Fixed unittest deprecation warnings in the test suite.
Release 7.1.1: Restore Debian/Ubuntu Python 3 compatibility (distutil…
Release 7.1.1: Restore Debian/Ubuntu Python 3 compatibility (distutil…
Fix Python 3 incompatibility (distutils.spawn).
Much to my dismay this morning I ran into the following traceback on a Python 3.6 installation that is based on native Ubuntu (Debian) packages:
Traceback (most recent call last):
File "...", line 1, in <module>
from coloredlogs.syslog import enable_system_logging
File ".../coloredlogs/__init__.py", line 138, in <module>
from humanfriendly import coerce_boolean
File ".../humanfriendly/__init__.py", line 25, in <module>
from humanfriendly.tables import format_pretty_table as format_table
File ".../humanfriendly/tables.py", line 32, in <module>
from humanfriendly.terminal import (
File ".../humanfriendly/terminal.py", line 26, in <module>
import distutils.spawn
ModuleNotFoundError: No module named 'distutils.spawn'
To enable local development and testing against lots of Python releases I use deadsnakes to install Python 2.7, 3.4, 3.5, 3.6, 3.7 and 3.8 at the same time. Before committing 335a69bae5 I did check the availability of the distutils.spawn module against my locally installed interpreters:
$ ls -l /usr/lib/python*/distutils/spawn.py
-rw-r--r-- 1 root root 8.5K Nov 7 11:07 /usr/lib/python2.7/distutils/spawn.py
-rw-r--r-- 1 root root 7.4K Mar 29 2019 /usr/lib/python3.4/distutils/spawn.py
-rw-r--r-- 1 root root 7.3K Nov 24 02:35 /usr/lib/python3.5/distutils/spawn.py
-rw-r--r-- 1 root root 7.3K Oct 28 17:30 /usr/lib/python3.6/distutils/spawn.py
-rw-r--r-- 1 root root 7.7K Oct 28 17:30 /usr/lib/python3.7/distutils/spawn.py
-rw-r--r-- 1 root root 7.7K Oct 28 17:30 /usr/lib/python3.8/distutils/spawn.py
I took this to mean it would be available on all these versions. Furthermore the tests on Travis CI passed as well. I think this is because deadsnakes as well as Travis CI are closer to upstream (the official Python releases) whereas Debian and Ubuntu make significant customizations...
In any case this new commit should fix the issue by using shutil.which() on Python 3 instead.
Enable Windows native support for ANSI escape sequences. This was brought to my attention in coloredlogs issue #71_ and coloredlogs pull request #72_.
Enhancements:
Enable Windows native support for ANSI escape sequences. This was brought to my attention in coloredlogs issue #71 and coloredlogs pull request #72. My experiences with ANSI escape sequences started out as part of the coloredlogs package but eventually I moved the support for ANSI escape sequences to the humanfriendly package. This explains how it now makes sense to integrate the Windows native ANSI escape sequence support in humanfriendly as well.
Bug fixes:
Accept pluralized disk size units (#26). I'm not claiming this is a full solution to the problem, far from it. It does lessen the pain a bit (IMHO).
Make sure the selected pager is available before trying to run it. While testing humanfriendly on Windows 10 I noticed that humanfriendly --help resulted in nothing but a traceback, because less wasn't available. That's not human friendly at all 😕 (even if it is Windows 😈).
After an unplanned but extended hiatus from the development and maintenance of my open source projects I'm now finally starting to pick up some moment
After an unplanned but extended hiatus from the development and maintenance of my open source projects I'm now finally starting to pick up some momentum, so I'm trying to make the best of it:
Merge pull request #24: Fix bug in ~humanfriendly.parse_length() that rounded floats.
Merge pull request #32: Update hyperlinks in readme.
Merge pull request #33: Drop support for Python 2.6 and 3.0-3.4
Merge pull request #35: SVG badge in readme.
Merge pull request #36: Add support for nanoseconds and microseconds time units
Fixed ~humanfriendly.tables.format_rst_table() omission from humanfriendly.tables.__all__.
Start testing on Python 3.8 and 3.9-dev.
Added a `:pypy:…`` role for easy linking to packages on the Python Package Index, for details refer to humanfriendly.sphinx.pypi_role()`.
Added a … role for easy linking to packages on the Python Package Index, for details refer to humanfriendly.sphinx.pypi_role().
Wasted quite a bit of time debugging a MacOS failure on Travis CI caused by a broken pip installation, fixed by using get-pip.py to bootstrap an installation that actually works 😉.
Added a :pypy:… role for easy linking to packages on the Python Package
Index, for details refer to humanfriendly.sphinx.pypi_role() .
Wasted quite a bit of time debugging a MacOS failure on Travis CI caused by a broken pip installation, fixed by using get-pip.py to bootstrap an installation that actually works 😉.
Enable ~humanfriendly.testing.MockedProgram to customize the shell script code of mocked programs. This was added to make it easy to mock a program th
Noteworthy changes:
Enable ~humanfriendly.testing.MockedProgram to customize the shell script code of mocked programs. This was added to make it easy to mock a program that is expected to generate specific output (I'm planning to use this in the linux-utils test suite).
Defined __all__ for all public modules that previously lacked "export control" and decided to bump the major version number as a precaution:
These changes should not have any impact on backwards compatibility, unless I forgot entries, in which case callers can get ~exceptions.ImportError exceptions...
Imports of public modules were previously exported (implicitly) and this pollutes code completion suggestions which in turn can encourage bad practices (not importing things using their "canonical" name).
I started developing the humanfriendly package years before I learned about the value of defining __all__ and so some modules lacked a definition until now. I decided that now was as good a time as any to add those definitions 😇.
Miscellaneous changes:
Simplified the headings in docs/api.rst so that only the module names remain. This was done because Sphinx doesn't support nested links in HTML output and thus generated really weird "Table of Contents" listings.
Fixed the reStructuredText references in the documentation of ~humanfriendly.prompts.prompt_for_choice(). This function is imported from humanfriendly.prompts to humanfriendly (for backwards compatibility) where it can't use relative references to refer to the other functions in the humanfriendly.prompts module.
Changed the Makefile to default to Python 3 for development, make sure flake8 is always up-to-date and silence the few targets whose commands were not already silenced.
Embedded quite a few Python API references into recent changelog entries, just because I could (I ❤️ what hyperlinks can do for the usability of technical documentation, it gives a lot more context).
I decided to bump the major version number because each of these changes can be considered backwards incompatible in one way or another and version nu…
Added custom … role for easy linking to Linux manual pages to the humanfriendly.sphinx module.
Changed rendering of pretty tables to expand tab characters to spaces:
Until now pretty tables did not take the variable width of tab characters into account which resulted in tables whose "line drawing characters" were visually misaligned. Tabs are now expanded to spaces using str.expandtabs().
Stop testing on Python 2.6 and drop official support. The world (including Travis CI) has moved on and preserving Python 2.6 compatibility was clearly starting to drag the project down...
I decided to bump the major version number because each of these changes can be considered backwards incompatible in one way or another and version numbers are cheap anyway so there 😛.
Fixed "invalid escape sequence" DeprecationWarning (pointed out by Python >= 3.6).
Added humanfriendly.text.generate_slug() function.
Fixed "invalid escape sequence" DeprecationWarning (pointed out by Python >= 3.6).
Fought Travis CI (for way too long) in order to restore Python 2.6, 2.7, 3.4, 3.5, 3.6 and 3.7 compatibility in the Travis CI configuration (unrelated to the humanfriendly package itself).
Add Python 3.7 to versions tested on Travis CI and using tox and document compatibility with Python 3.7.
Add Python 3.7 to versions tested on Travis CI and using tox and document compatibility with Python 3.7.
Add rudimentary caching decorator for functions:
Over the years I've used several variations on this function in multiple projects and I'd like to consolidate all of those implementations into a single one that's properly tested and documented.
Due to the simplicity and lack of external dependencies it seemed kind of fitting to include this in the humanfriendly package, which has become a form of extended standard library for my Python projects 😇.
Yet another ANSI to HTML improvement: Emit an ANSI reset code before emitting ANSI escape sequences that change styles, so that previously activated s
Yet another ANSI to HTML improvement: Emit an ANSI reset code before emitting ANSI escape sequences that change styles, so that previously activated styles don't inappropriately "leak through" to the text that follows.
More HTML to ANSI improvements:
More HTML to ANSI improvements:
Added humanfriendly.text.compact_empty_lines() function.
Enable optional callback argument to humanfriendly.terminal.html_to_ansi().
Added a code sample and screenshot to the humanfriendly.terminal.HTMLConverter documentation.
Emit vertical whitespace for block tags like <div>, <p> and <pre> and post-process the generated output in __call__() to compact empty lines.
Don't pre-process preformatted text using the user defined text callback.
Improve robustness against malformed HTML (previously an IndexError would be raised when a closing </a> tag was encountered without a corresponding opening <a> tag).
Emit an ANSI reset code when humanfriendly.terminal.html.HTMLConverter.close() is called and a style is still active (improves robustness against malformed HTML).
Bug fixes for HTML to ANSI conversion.
Bug fixes for HTML to ANSI conversion.
HTML entities were being omitted from conversion because I had neglected to define the handle_charref() and handle_entityref() methods (whose definitions are so conveniently given in the documentation of the HTMLParser class 😇).
Added the humanfriendly.terminal.html_to_ansi() function which is a shortcut for the humanfriendly.terminal.HTMLConverter class that's based on html.p
Added the humanfriendly.terminal.html_to_ansi() function which is a shortcut for the humanfriendly.terminal.HTMLConverter class that's based on html.parser.HTMLParser.
This new functionality converts HTML with simple text formatting tags like <b> for bold, <i> for italic, <u> for underline, <span> for colors, etc. to text with ANSI escape sequences.
I'm still working on that awesome new project (update: see chat-archive_), this functionality was born there but seemed like a useful addition to the humanfriendly package, given the flexibility that this provides 😇.
Support for 24-bit (RGB) terminal colors. Works by accepting a tuple or list with three integers representing an RGB (red, green, blue) color.
Support for 24-bit (RGB) terminal colors. Works by accepting a tuple or list with three integers representing an RGB (red, green, blue) color.
Support for *italic* text rendering on the terminal.
Support for italic text rendering on the terminal.
I'm working on an awesome new project (update: see chat-archive) that's almost ready to publish, but then I noticed that I couldn't render italic text on the terminal using the humanfriendly package. I checked and sure enough my terminal supported it just fine, so I didn't see any reason not to fix this now 😇.
It was reported in issue #28_ that humanfriendly --demo didn't work on Python 3 due to two unrelated TypeError exceptions. First I added a failing reg
It was reported in issue #28 that humanfriendly --demo didn't work on Python 3 due to two unrelated TypeError exceptions. First I added a failing regression test to the test suite (here's the failing build) and then I applied the changes suggested in issue #28, confirming that both issues are indeed fixed because the test now passes (here's the successful build).
Make humanfriendly.format_timespan() accept datetime.timedelta objects (fixes #27_).
Make humanfriendly.format_timespan() accept datetime.timedelta objects (fixes #27).
Add license key to setup.py script (pointed out to me in coloredlogs pull request #53).
Added this changelog as requested in #23_.
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.
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 :-).
Added the humanfriendly.Timer.sleep() method to sleep "no more than" the given number of seconds.
Added the humanfriendly.Timer.sleep() method to sleep "no more than" the given number of seconds.
Added the humanfriendly.tables.format_rst_table() function to render RST (reStructuredText) tables.
Added the humanfriendly.tables.format_rst_table() function to render RST (reStructuredText) tables.
Added the 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
Added the 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.
Added support for background colors and 256 color mode (related to issue 35 on the coloredlogs issue tracker _).
Added support for background colors and 256 color mode (related to issue 35 on the coloredlogs issue tracker).
Added tests for ~humanfriendly.terminal.output(), ~humanfriendly.terminal.message() and ~humanfriendly.terminal.warning().
Added support for background colors and 256 color mode (related to issue 35 on the coloredlogs issue tracker ).
Added tests for output() , message() and warning() .
Fixed issue #21 by implementing support for bright (high intensity) terminal colors.
Fixed issue #21 by implementing support for bright (high intensity) terminal colors.
Fixed issue #16 by merging pull request #17_: Extend byte ranges, add RAM output to command line.
Fixed issue #16 by merging pull request #17: Extend byte ranges, add RAM output to command line.
In the merge commit I removed the --format-bytes option that #17 added and instead implemented a --binary option which changes --format-size to use binary multiples of bytes (base-2) instead of decimal multiples of bytes (base-10).
Fixed ImportError exception on Windows due to interactive prompts (fixes #19_ by merging #20_.).
Include the Sphinx documentation in source distributions (same rationales as for the similar change made to 'coloredlogs' and 'verboselogs').
Include the Sphinx documentation in source distributions (same rationales as for the similar change made to 'coloredlogs' and 'verboselogs').
Added the ~humanfriendly.testing.make_dirs() and ~humanfriendly.testing.touch() functions.
Added the ~humanfriendly.testing.make_dirs() and ~humanfriendly.testing.touch() functions.
Don't log duplicate output in ~humanfriendly.testing.run_cli().
Don't log duplicate output in ~humanfriendly.testing.run_cli().
Automatically reconfigure logging in ~humanfriendly.testing.run_cli().
Automatically reconfigure logging in ~humanfriendly.testing.run_cli().
Improve ~humanfriendly.testing.run_cli() to always log standard error as well.
Improve ~humanfriendly.testing.run_cli() to always log standard error as well.
Backwards incompatible improvements to ~humanfriendly.testing.run_cli().
Backwards incompatible improvements to ~humanfriendly.testing.run_cli().
I just wasted quite a bit of time debugging a Python 3.6 incompatibility in deb-pkg-tools (see build 251688788) which was obscured by my naive implementation of the run_cli() function. This change is backwards incompatible because run_cli() now intercepts all exceptions whereas previously it would only intercept SystemExit.
Make it easy to mock the $HOME directory.
Make it easy to mock the $HOME directory.
Enable customizable skipping of tests.
Enable customizable skipping of tests.
Improved the robustness of the ~humanfriendly.testing.PatchedAttribute and ~humanfriendly.testing.PatchedItem classes.
Improved the robustness of the ~humanfriendly.testing.PatchedAttribute and ~humanfriendly.testing.PatchedItem classes.
Improved the robustness of the PatchedAttribute and PatchedItem classes.
Made the retry limit in interactive prompts configurable.
Made the retry limit in interactive prompts configurable.
Refactored the makefile and Travis CI configuration.
Added humanfriendly.testing.TestCase.assertRaises() enhancements.
Added humanfriendly.testing.TestCase.assertRaises() enhancements.
Bug fix for Python 3 syntax incompatibility.
Bug fix for Python 3 syntax incompatibility.
Promote the command line testing function to the public API.
Promote the command line testing function to the public API.
Added the humanfriendly.text.random_string() function.
Added the humanfriendly.text.random_string() function.
Added the humanfriendly.testing module with unittest helpers.
Define humanfriendly.text.__all__.
Added the humanfriendly.terminal.output() function to auto-encode terminal output to avoid encoding errors and applied the use of this function in var
Added the humanfriendly.terminal.output() function to auto-encode terminal output to avoid encoding errors and applied the use of this function in various places throughout the package.
Improved usage message parsing and rendering.
Improved usage message parsing and rendering.
While working on a new project I noticed that the join_lines() call in render_usage() could corrupt lists as observed here:
https://github.com/xolox/python-rsync-system-backup/blob/ed73787745e706cb6ab76c73acb2480e24d87d7b/README.rst#command-line (check the part after 'Supported locations include:')
To be honest I'm not even sure why I added that join_lines() call to begin with and I can't think of any good reasons to keep it there, so gone it is!
…it anyway, so this change is technically backwards incompatible. Besides, version numbers are cheap. In fact, they are infinite! :-)
Added support for min, mins abbreviations for minutes based on #14.
Added Python 3.6 to supported versions on Travis CI and in documentation.
I've decided to bump the major version number after merging pull request #14 because the humanfriendly.time_units data structure was changed. Even though this module scope variable isn't included in the online documentation, nothing stops users from importing it anyway, so this change is technically backwards incompatible. Besides, version numbers are cheap. In fact, they are infinite! :-)
Make usage() and show_pager() more user friendly by changing how less as a default pager is invoked (with specific options).
Make usage() and show_pager() more user friendly by changing how less as a default pager is invoked (with specific options).
Bug fix: Don't hard code conditional dependencies in wheels.
Bug fix: Don't hard code conditional dependencies in wheels.
Fix parse_usage() tripping up on commas in option labels.
Fix parse_usage() tripping up on commas in option labels.
Switch to monotonic clock for timers based on #13_.
Switch to monotonic clock for timers based on #13.
Change readthedocs.org to readthedocs.io everywhere.
Improve intersphinx references in documentation.
Minor improvements to setup script.
Improve use of timers as context managers by returning the timer object (as originally intended).
Improve use of timers as context managers by returning the timer object (as originally intended).
Minor improvements to reStructuredText formatting in various docstrings.
Fix and add a test for parse_date() choking on Unicode strings.
Fix and add a test for parse_date() choking on Unicode strings.
Only use "readline hints" in prompts when standard input is a tty.
Added clean_terminal_output() function to sanitize captured terminal output.
Added clean_terminal_output() function to sanitize captured terminal output.
Update README.rst based on the changes in 2.0 by merging #12_.
Update README.rst based on the changes in 2.0 by merging #12.
Proper support for IEEE 1541 definitions of units (fixes #4_, merges #8_ and #9_).
Fix and add tests for the timespan formatting issues reported in issues #10_ and #11_.
Your coding agent can read these notes before it upgrades. Set up the MCP server →