- Dev-dependencies were updated.
- CodeQL configuration was cleaned and updated to new versions.
- Minor tests tweaks.
- Added support for 3.13.
Supported python versions are 3.10-3.13.
- If an exception is raised in a context or in a decorated function, information about time elapsed until
the failure is printed like this:
foo: 120 ms (failed)
- Removed striping of whitespaces in unit name. So now ' h ' is not a valid unit name anymore.
- Proper handling of exceptions was added to timed decorator.
ParamSpec
was used to annotate types more precisely in typed decorator.- Added 1 new test for time formatter.
- Added 4 new tests for Timed context.
- Added 4 new tests for timed decorator.
- Restored 3 tests with actual delays with sleep and added rerun mechanism to contain their flakiness.
- New image
- New MIT license badge
- Removed support for 3.8 and 3.9.
- Added support for 3.12.
Supported python versions are 3.10-3.12.
- Removed alternative names for time units.
- Type hints were added to the whole codebase.
- Using
interval
property of Timing context before entering the context gives now a RuntimeError with an explanation. - Using
total
property of Timed iterable returns now zero as expected in case that the iteration was not yet started.
- Added this CHANGELOG.
- CI was migrated from CircleCI to GitHub Actions.
- Automatic tests were added for macOS and windows (which were tested before only manually).
- All tests were deeply refactored in this release. All sleeps were replaced with proper mocking of
perf_counter
. - Unittest and nose was replaced with pytest.
- Static type checker (mypy) was added to CI.
- Removed support for 3.6 and 3.7.
- Added support for 3.10 and 3.11.
Supported python versions are 3.8-3.11.
- Use always 3 significant digits when formatting output strings. Such formatting is much more elegant and avoids adding decimal points for integers.
- Wrong link in pepy badge.
- All docs were rewritten in beautiful numpy style.
- Add CI for python 3.9.
- Use poetry to build and deploy
Supported python versions are 3.6-3.9.
- Time units allow aliases, by @johnashu
- Not rescaling total time in Timed iterable - fixed
- Add contribution guide.
- Add bug report template.
- Add feature request template.
- Add doc strings in tformatter module.
- Add badges to readme.
- Add CI for python 3.6-3.8
- Add tests of Timed iterable summary
- Add tests of tformatter exception
Thanks to our 1 contributor whose commits are featured in this release: @johnashu
horology
name was picked instead of confusingttt
.- The package can now be installed with
pip install horology
.