Repository navigation
Releases
Releases · python-humanize/humanize
4.17.0
Immutable
release. Only release title and notes can be modified.
Added
- Add Sinhala (si_LK) locale (#360) @RavinduPabasara
- Add support for Python 3.16 (#515) @hugovk
Changed
- Drop support for EOL Python 3.10 (#440) @hugovk
- Omit
.poline numbers to prevent churn when code shifts (#517) @hugovk - Defer importing
mathinfilesize.py(#397) @hugovk
Fixed
- Correct clamp annotations for callable formatters and None (#516) @hugovk, @lohitredddy
- Complete missing Simplified Chinese translations (#472) @Plastic-time
- Correct Chinese quadrillion translations (#473) @Plastic-time
- Fix untranslated
filesizeunits and compile catalogs in tox (#514) @hugovk - Fix
OverflowErrorinnaturaltime/precisedeltafor far-future dates (#479) @tamsk-91, @hugovk - Use "sonra" for future times in Turkish (#501) @emincan2000
- Use Turkish numeric separators (#465) @emrehangorgec
- Fix Persian future-time wording and locale metadata (#461) @AliEmami81
- Translate byte-size labels into Persian (#464) @AliEmami81
- Complete and fix the Bengali (bn_BD) translation (#471) @Drakunal
- Fix
naturaldeltatruncating years instead of rounding (#295) @ArmaanjeetSandhu, @hugovk - Fix
intword()rounding carry for very large numbers (#346) @binggao1230 - Fix
naturaldeltadoctest (#402) @hugovk - Support general iterables in
natural_list(#381) @Pxnzerr - Fix translation loss during catalog updates (#391) @BenYang12, @hugovk
- Fix
metric()showing an extra significant digit on rounding carry (#359) @vidigoat, @hugovk - Fix intcomma overflow for large Python integers (#392) @Yananix
- Remove the leftover format placeholder from
intwordunits (#382) @VenishPaneliya, @hugovk - Use a comma as the fr_FR decimal separator (#378) @ckarnell
- Return non-finite floats unchanged from
naturaldelta(#334) @uttam12331, @hugovk, @pre-commit-ci[bot] - Fix
fractional()emitting degenerate output when the fraction rounds to a whole (#354) @semx, Sergey Sannikov
4.16.0
Immutable
release. Only release title and notes can be modified.
Added
- Add Latvian language localization (#301) @EPoikans
- Add i18n support for
naturalsize()and French translation (#294) @Yibomao
Changed
- Performance improvements: 1.07x - 8.4x (#315) @hugovk
- Lazy imports for Python 3.15+ (#335) @hugovk
- Drop experimental Python 3.13 free-threaded (#336) @hugovk
- Refactor: simplify
scientific()and extract_SUPERSCRIPT_MAPconstant (#313) @maayanmatsliah-tech
Fixed
- Fix
naturalsize()rounding rollover at unit boundaries (#329) @patchwright - Carry
metric()to the next SI prefix when rounding reaches 1000 (#328) @gaoflow - Stop printing two minus signs in fractional for a negative mixed number (#320) @c-tonneslan
- Return an empty string from
natural_list()for an empty list (#318) @c-tonneslan - Handle tz-aware datetimes in
naturalday()andnaturaldate()(#297) @bysiber - Fix Arabic translation (#307) @AYMENJD
- Fix Spanish large number translations to use long scale (#302) @sedat4ras
4.15.0
Added
- Add locale support for decimal separator in
intword(#287) @hugovk - Add support for Python 3.15 (#275) @hugovk
Changed
Fixed
naturaldelta: round the value to nearest unit that makes sense (#272) @dangillet- Fix plural form for
intwordand improve performance (#273) @dangillet - Replace
Exceptionwith more specificFileNotFoundError(#286) @hugovk
4.14.0
4.13.0
4.12.3
Fixed
- Fix regression in
naturalsizeforfloatandstr(#250) @loicleyendecker - Improvements for French translation (#248) @merwok
4.12.2
4.12.1
4.12.0
Added
- Add support for Python 3.14 and test PyPy3.11 (#235) @hugovk
- Handle en_GB and en_US locale (#230) @dangillet
- Release to PyPI using Trusted Publishing (#213) @hugovk
Changed
- Defer imports for faster overall import time: 19 ms -> 3 ms (#234, #238) @hugovk
- Replace deprecated classifier with licence expression (PEP 639) (#236) @hugovk
- Lint and test with tox-uv (#212) @hugovk
Fixed
4.11.0
Added
- Add
natural_list(#110) @akshaybabloo - filesize: support the ronna and quetta prefixes (#142) @bbolli
- Update French translations for numbers (#192) @enlivn
Changed
- Drop support for Python 3.8 (#202) @hugovk
- Defer
fractions.Fractionimport to save 5ms (#201) @hugovk - Speedup x 1.85: Generate
__version__at build to avoid slowimportlib.metadataimport (#200) @hugovk
Fixed
- Fix finding location of translations (#204) @dangillet
- Fix rollover from ZB to 1.0 YB (#206) @hugovk
- Fix zh_CN/zh_HK translation for "1 year, %d days" (#196) @luliangce