ago
ago: Human readable timedeltas
Decision gist · record as of 2026-08-14
Yes. The package is lightweight, dependency-free, actively maintained (recent release), permissively licensed, and solves a common formatting need. Install it if you need to display relative timestamps in human-readable form; skip it only if you're already using a heavier datetime library that includes this feature.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies and a recent release (43 days old).
- Maintenance status is active.
License · maintenance · safety
Public Domain (permissive) — Public Domain license means unrestricted use, modification, and distribution with no attribution or liability concerns.
last release 2026-07-02 (43 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 104,880 downloads/mo, #12,734 on PyPI
Alternatives
Verify before relying
pip install ago
from ago import human
from datetime import datetime, timedelta
db_date = datetime(year=2010, month=5, day=4, hour=6, minute=54, second=33)
print('Created ' + human(db_date)) # "Created X years, Y months ago"
delta = timedelta(days=5, hours=3, minutes=45)
print('Due in ' + human(delta)) # "Due in 5 days, 3 hours"- Whether Python version support is truly unspecified or if there are practical constraints not documented in the fact sheet.
- Whether the package is actively maintained beyond the recent release date, given that repository metadata (stars, last commit) is unavailable.
What it is and what it does
ago is a lightweight utility that transforms time intervals into natural-language phrases. It accepts a datetime object (to compute elapsed or future time relative to now), a timedelta object, or a raw timestamp, and produces strings like 'created 1 year, 127 days ago' or 'due in 2 days, 3 hours'. The core function is `human()`, which takes a time input and optional parameters for precision (how many time units to show), tense templates (past/future format strings), and abbreviation (to produce '5d, 3h' instead of '5 days, 3 hours'). It also exposes lower-level functions like `delta2dict()` and `extract_components()` for cases where you need to work with the time breakdown directly rather than a formatted string.
The package has no external dependencies and installs as a pure Python wheel, making it suitable for embedding in applications that need to display relative timestamps in logs, UI, or API responses. It's particularly useful when you want consistent, customizable phrasing for time intervals without writing your own formatting logic.
Use it for
- Display activity timestamps in web interfaces or logs (e.g., 'User commented 2 days, 5 hours ago').
- Format scheduled task or job descriptions (e.g., 'Job will run in 3 days, 2 hours from now').
- Generate human-friendly uptime or elapsed-time summaries in monitoring dashboards.
- Customize time-ago phrases for different contexts or languages via past_tense and future_tense templates.
- Build time-unit breakdowns programmatically using delta2dict or extract_components for further processing.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is lightweight, dependency-free, actively maintained (recent release), permissively licensed, and solves a common formatting need. Install it if you need to display relative timestamps in human-readable form; skip it only if you're already using a heavier datetime library that includes this feature.
Install
ago on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies and a recent release (43 days old). Maintenance status is active.
License in practice
Public Domain license means unrestricted use, modification, and distribution with no attribution or liability concerns.
Quickstart
pip install ago
from ago import human
from datetime import datetime, timedelta
db_date = datetime(year=2010, month=5, day=4, hour=6, minute=54, second=33)
print('Created ' + human(db_date)) # "Created X years, Y months ago"
delta = timedelta(days=5, hours=3, minutes=45)
print('Due in ' + human(delta)) # "Due in 5 days, 3 hours"
Verify before relying
- Whether Python version support is truly unspecified or if there are practical constraints not documented in the fact sheet.
- Whether the package is actively maintained beyond the recent release date, given that repository metadata (stars, last commit) is unavailable.
Package facts
| License | Public Domain permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 43 days since the last release |
| First released | |
| Downloads | 104,880 / month, #12,734 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: ago-0.1.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “human readable timedelta”
- agoConverts datetime, timedelta, and timestamp objects into…
- deltaParses human-readable duration strings like '1 hour' or '2 months and…
- pytimeparse2Parses human-readable time expressions (like '2h32m', '1.2 minutes',…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also delta · timeago · snaptime · humanize · humanreadable · human-readable · pytimeparse2 · timelib · Flask-Moment · pytimeparse