Human Readable

2.0.2 · active · verified Thu Apr 16

The `human-readable` library provides a collection of utilities to convert various data types, such as numbers, dates, times, file sizes, and lists, into a more human-friendly and readable format. It aims to enhance user experience by presenting machine-generated data in an intuitive way. The current version is 2.0.2 and it is actively maintained, with the latest release on March 26, 2026.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates common humanization tasks for time, file sizes, lists, and numbers using the `human_readable` library's core functions.

import human_readable
import datetime as dt

# Date and time humanization
print(human_readable.time_of_day(17))
print(human_readable.time_delta(dt.timedelta(seconds=3665)))

# File size humanization
print(human_readable.file_size(2900000))

# List humanization
print(human_readable.listing(['apple', 'banana', 'orange']))

# Numbers humanization
print(human_readable.int_comma(123456789))
print(human_readable.int_word(123456789))

view raw JSON →