| 1 |
# Changelog |
| 2 |
|
| 3 |
All notable changes to this project will be documented in this file. |
| 4 |
|
| 5 |
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 6 |
|
| 7 |
|
| 8 |
## [Unreleased] |
| 9 |
|
| 10 |
## [1.4.0] - 2022-11-08 |
| 11 |
|
| 12 |
### Added |
| 13 |
|
| 14 |
- `inital_text` parameter which, when present, will use logger to log that timer has been started (by [Matthew Price](https://github.com/pricemg) in [#47]) |
| 15 |
|
| 16 |
## [1.3.2] - 2022-10-07 |
| 17 |
|
| 18 |
### Added |
| 19 |
|
| 20 |
- `__all__` to specify the public API (by [@alkatar21](https://github.com/alkatar21) in [#46]) |
| 21 |
|
| 22 |
## [1.3.1] - 2022-10-06 |
| 23 |
|
| 24 |
### Added |
| 25 |
|
| 26 |
- A `py.typed` file to mark `codetiming` as typed as specified in [PEP 561](https://peps.python.org/pep-0561/#packaging-type-information) (by [@alkatar21](https://github.com/alkatar21) in [#38]) |
| 27 |
|
| 28 |
### Changed |
| 29 |
|
| 30 |
- Use GitHub Actions instead of CircleCI for CI ([#33]) |
| 31 |
- Explicitly support Python 3.10 and 3.11 ([#32], [#34], [#35]) |
| 32 |
|
| 33 |
## [1.3.0] - 2021-02-09 |
| 34 |
|
| 35 |
### Added |
| 36 |
|
| 37 |
- `text` can be a callable returning a formatted string, suggested by [@dchess](https://github.com/dchess) in [#29] ([#30]). |
| 38 |
- Testing with [Interrogate](https://interrogate.readthedocs.io/) to enforce docstrings ([#27]). |
| 39 |
|
| 40 |
|
| 41 |
## [1.2.0] - 2020-03-03 |
| 42 |
|
| 43 |
### Added |
| 44 |
|
| 45 |
- Attributes that can be referenced in the `text` template string, suggested by [@mlisovyi](https://github.com/mlisovyi) in [#24] ([#25]). |
| 46 |
|
| 47 |
### Changed |
| 48 |
|
| 49 |
- `Timer.timers` changed from regular `dict` to a custom dictionary supporting basic statistics for named timers ([#23]). |
| 50 |
|
| 51 |
|
| 52 |
## [1.1.0] - 2020-01-15 |
| 53 |
|
| 54 |
### Added |
| 55 |
|
| 56 |
- `.last` attribute with the value of the last measured time (by [@janfreyberg](https://github.com/janfreyberg) in [#13]). |
| 57 |
- `CHANGELOG.md` detailing changes made to `codetiming` since its initial publication ([#17]). |
| 58 |
- `CONTRIBUTING.md` with guidelines on how to work with `codetiming` as a developer ([#18]). |
| 59 |
- `AUTHORS.md` with a list of maintainers and contributors ([#18]) |
| 60 |
|
| 61 |
|
| 62 |
## [1.0.0] - 2019-12-31 |
| 63 |
|
| 64 |
Initial version of `codetiming`. Version 1.0.0 corresponds to the code in the tutorial [Python Timer Functions: Three Ways to Monitor Your Code](https://realpython.com/python-timer/). |
| 65 |
|
| 66 |
|
| 67 |
[Unreleased]: https://github.com/realpython/codetiming/compare/v1.4.0...HEAD |
| 68 |
[1.4.0]: https://github.com/realpython/codetiming/compare/v1.3.2...v1.4.0 |
| 69 |
[1.3.2]: https://github.com/realpython/codetiming/compare/v1.3.1...v1.3.2 |
| 70 |
[1.3.1]: https://github.com/realpython/codetiming/compare/v1.3.0...v1.3.1 |
| 71 |
[1.3.0]: https://github.com/realpython/codetiming/compare/v1.2.0...v1.3.0 |
| 72 |
[1.2.0]: https://github.com/realpython/codetiming/compare/v1.1.0...v1.2.0 |
| 73 |
[1.1.0]: https://github.com/realpython/codetiming/compare/v1.0.0...v1.1.0 |
| 74 |
[1.0.0]: https://github.com/realpython/codetiming/releases/tag/v1.0.0 |
| 75 |
|
| 76 |
[#13]: https://github.com/realpython/codetiming/pull/13 |
| 77 |
[#17]: https://github.com/realpython/codetiming/pull/17 |
| 78 |
[#18]: https://github.com/realpython/codetiming/pull/18 |
| 79 |
[#23]: https://github.com/realpython/codetiming/pull/23 |
| 80 |
[#24]: https://github.com/realpython/codetiming/issues/24 |
| 81 |
[#25]: https://github.com/realpython/codetiming/pull/25 |
| 82 |
[#27]: https://github.com/realpython/codetiming/pull/27 |
| 83 |
[#29]: https://github.com/realpython/codetiming/issues/29 |
| 84 |
[#30]: https://github.com/realpython/codetiming/pull/30 |
| 85 |
[#32]: https://github.com/realpython/codetiming/pull/32 |
| 86 |
[#33]: https://github.com/realpython/codetiming/pull/33 |
| 87 |
[#34]: https://github.com/realpython/codetiming/pull/34 |
| 88 |
[#35]: https://github.com/realpython/codetiming/pull/35 |
| 89 |
[#38]: https://github.com/realpython/codetiming/pull/38 |
| 90 |
[#46]: https://github.com/realpython/codetiming/pull/46 |
| 91 |
[#47]: https://github.com/realpython/codetiming/pull/47 |