# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= python-humanize VERSION= 4.9.0 KEYWORDS= python VARIANTS= v11 v12 SDESC[v11]= Python humanize utilities (3.11) SDESC[v12]= Python humanize utilities (3.12) HOMEPAGE= https://github.com/python-humanize/humanize CONTACT= Python_Automaton[python@ironwolf.systems] DOWNLOAD_GROUPS= main SITES[main]= PYPIWHL/aa/2b/2ae0c789fd08d5b44e745726d08a17e6d3d7d09071d05473105edc7615f2 DISTFILE[1]= humanize-4.9.0-py3-none-any.whl:main DF_INDEX= 1 SPKGS[v11]= single SPKGS[v12]= single OPTIONS_AVAILABLE= PY311 PY312 OPTIONS_STANDARD= none VOPTS[v11]= PY311=ON PY312=OFF VOPTS[v12]= PY311=OFF PY312=ON DISTNAME= humanize-4.9.0.dist-info GENERATED= yes [PY311].USES_ON= python:v11,wheel [PY312].USES_ON= python:v12,wheel [FILE:1550:descriptions/desc.single] # humanize [PyPI version] [Supported Python versions] [Documentation Status] [PyPI downloads] [GitHub Actions status] [codecov] [MIT License] [Tidelift] 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: - Arabic - Basque - Bengali - Brazilian Portuguese - Catalan - Danish - Dutch - Esperanto - European Portuguese - Finnish - French - German - Greek - Hebrew - Indonesian - Italian - Japanese - Klingon - Korean - Norwegian - Persian - Polish - Russian - Simplified Chinese - Slovak - Slovenian - Spanish - Swedish - Turkish - Ukrainian - Vietnamese ## API reference [https://humanize.readthedocs.io] ## Installation ### From PyPI ```bash python3 -m pip install --upgrade humanize ``` ### From source ```bash git clone https://github.com/python-humanize/humanize cd humanize python3 -m pip install -e . ``` ## Usage ### Integer humanization ```pycon >>> import humanize >>> humanize.intcomma(12345) '12,345' >>> humanize.intword(123455913) '123.5 million' >>> humanize.intword(12345591313) '12.3 billion' >>> humanize.apnumber(4) 'four' >>> humanize.apnumber(41) '41' ``` ### Date & time humanization ```pycon >>> import humanize >>> import datetime as dt >>> humanize.naturalday(dt.datetime.now()) 'today' >>> humanize.naturaldelta(dt.timedelta(seconds=1001)) '16 minutes' >>> humanize.naturalday(dt.datetime.now() - dt.timedelta(days=1)) 'yesterday' [FILE:110:distinfo] ce284a76d5b1377fd8836733b983bfb0b76f1aa1c090de2566fcf008d7f6ab16 126820 humanize-4.9.0-py3-none-any.whl