humanize is a Python utility library for converting machine-oriented numbers, dates, durations, and sizes into readable text. It can format large integers with separators or abbreviations such as millions and billions. Date and time helpers produce natural expressions such as relative times, human-readable dates, and approximate durations. Precise duration formatting can break intervals into days, hours, minutes, seconds, milliseconds, and smaller units. File sizes can be presented using decimal, binary, or GNU-style notation. The package also supports fractions, scientific notation, and extensive localization so applications can generate these human-friendly representations in many languages. Development of the project has since moved to the python-humanize organization.
Features
- Human-readable integer formatting
- Natural date and relative-time descriptions
- Precise duration formatting
- Readable file-size conversion
- Fraction and scientific-notation formatting
- Localization across numerous languages