humanize
Python humanize utilities
Install
humanize on PyPI
pip
pip install humanizeuv
uv add humanizepoetry
poetry add humanizePackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 44 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: humanize-4.16.0-py3-none-any.whl
Keywords: humanize, time, size
About humanize
from the package's own PyPI description — quoted content, verbatim
humanize
PyPI version (image) Supported Python versions (image) Documentation Status (image) PyPI downloads (image) GitHub Actions status (image) codecov (image) MIT License (image) Tidelift (image)
This modest package contains various common humanization utilities, like turning a number into a fuzzy...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Converts numbers, dates, times, and file sizes into human-readable strings with support for 30+ locales—e.g., turning a number into '12,345' or a timedelta into '3 minutes ago'.
Installs cleanly with no runtime dependencies and zero friction. Actively maintained with a recent release 44 days ago and steady commit activity.
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute freely as long as you include the license notice.
Usage
pip install humanize
import humanize
import datetime as dt
humanize.naturaltime(dt.datetime.now() - dt.timedelta(seconds=3))
# Output: '3 seconds ago'
Requires Python 3.10 or later.
Verdict: A mature, zero-dependency utility for formatting numbers and dates into readable strings across 30+ languages. MIT-licensed, actively maintained, and widely used (top_1000 tier). No known vulnerabilities and straightforward installation make it a reliable choice for UI and logging tasks.
Needs verification
- Performance characteristics for high-volume formatting operations.
- Whether localization files are bundled or require separate installation.
Similar packages
permissive · top 1,000 on PyPI
tomlpermissive · top 1,000 on PyPI
pendulumpermissive · top 1,000 on PyPI
isodatepermissive · top 1,000 on PyPI
pytimeparsepermissive · top 1,000 on PyPI
dateparserpermissive · top 1,000 on PyPI
babelpermissive · top 1,000 on PyPI
natsortpermissive · top 1,000 on PyPI
delta-sparkpermissive · top 1,000 on PyPI
durationpypermissive · top 1,000 on PyPI