./textproc/py-humanize, Convert numbers into easily readable format

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ]


Branch: CURRENT, Version: 4.17.0, Package name: py314-humanize-4.17.0, Maintainer: pkgsrc-users

This modest package contains various common humanization utilities,
like turning a number into a fuzzy human readable duration ('3
minutes ago') or into a human readable size or throughput. It is
localized to Russian, French, and Korean.


Required to run:
[lang/python310]

Master sites:

Filesize: 88.563 KB

Version history: (Expand)


CVS history: (Expand)


   2026-11-25 14:58:31 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-humanize: updated to 4.17.0

4.17.0

Added

Add Sinhala (si_LK) locale
Add support for Python 3.16

Changed

Drop support for EOL Python 3.10
Omit .po line numbers to prevent churn when code shifts
Defer importing math in filesize.py

Fixed

Correct clamp annotations for callable formatters and None
Complete missing Simplified Chinese translations
Correct Chinese quadrillion translations
Fix untranslated filesize units and compile catalogs in tox
Fix OverflowError in naturaltime/precisedelta for far-future dates
Use "sonra" for future times in Turkish
Use Turkish numeric separators
Fix Persian future-time wording and locale metadata
Translate byte-size labels into Persian
Complete and fix the Bengali (bn_BD) translation
Fix naturaldelta truncating years instead of rounding
Fix intword() rounding carry for very large numbers
Fix naturaldelta doctest
Support general iterables in natural_list
Fix translation loss during catalog updates
Fix metric() showing an extra significant digit on rounding carry
Fix intcomma overflow for large Python integers
Remove the leftover format placeholder from intword units
Use a comma as the fr_FR decimal separator
Return non-finite floats unchanged from naturaldelta
Fix fractional() emitting degenerate output when the fraction rounds to a whole
   2026-07-01 12:01:43 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-humanize: updated to 4.16.0

4.16.0

Added

Add Latvian language localization
Add i18n support for naturalsize() and French translation

Changed

Performance improvements: 1.07x - 8.4x
Lazy imports for Python 3.15+
Drop experimental Python 3.13 free-threaded
Refactor: simplify scientific() and extract _SUPERSCRIPT_MAP constant

Fixed

Fix naturalsize() rounding rollover at unit boundaries
Carry metric() to the next SI prefix when rounding reaches 1000
Stop printing two minus signs in fractional for a negative mixed number
Return an empty string from natural_list() for an empty list
Handle tz-aware datetimes in naturalday() and naturaldate()
Fix Arabic translation
Fix Spanish large number translations to use long scale
   2025-12-22 15:18:57 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-humanize: updated to 4.15.0

4.15.0

Added

Add locale support for decimal separator in intword
Add support for Python 3.15

Changed

Replace pre-commit with prek

Fixed

naturaldelta: round the value to nearest unit that makes sense
Fix plural form for intword and improve performance
Replace Exception with more specific FileNotFoundError
   2025-10-20 09:55:53 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-humanize: updated to 4.14.0

4.14.0

Added

Add Uzbek language

Changed

Drop support for Python 3.9
   2025-09-01 14:59:11 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-humanize: updated to 4.13.0

4.13.0

Changed

Optimise naturalsize algorithm by using math.log

Fixed

Fix precisedelta rounding
   2025-05-06 14:45:50 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-humanize: updated to 4.12.3

4.12.3

Fixed

Fix regression in naturalsize for float and str
Improvements for French translation
   2025-04-12 21:05:38 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-humanize: updated to 4.12.2

4.12.2
Update license file reference from LICENSE to LICENCE in pyproject.toml
Update docstring in naturaldelta
Ignore sys.monitoring warning for Python 3.11 and earlier in coverage.py config
   2025-02-24 18:24:52 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-humanize: updated to 4.12.1

4.12.1

Fixed

Fix regression in naturalsize for float