about-time
Easily measure timing and throughput of code blocks, with beautiful human friendly representations.
Decision gist · record as of 2026-08-14
Yes. The package solves a real friction point—converting raw timing data into human-readable form—with zero dependencies, stable API, and broad Python version support. Use it when you need clean, readable timing instrumentation without the overhead of a full profiler. The aging maintenance status is not a blocker; the package is marked Production/Stable and has received regular updates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Last commit 2025-07-28 and status marked as aging, but the package is marked Production/Stable and has received regular maintenance since its 2018-08-21 initial release.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2025-07-23 (387 days) · last repo commit 2025-07-28 · 69 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,841,457 downloads/mo, #2,482 on PyPI
Alternatives
Verify before relying
from about_time import about_time
with about_time() as t:
expensive_operation()
print(f'Duration: {t.duration_human}')
# Or with a callable:
t = about_time(some_func)
print(f'Result: {t.result}, took {t.duration_human}')
# Or with an iterable:
t = about_time(range(1000))
for item in t:
process(item)
print(f'Throughput: {t.throughput_human}')- Whether the aging maintenance status reflects active development pauses or stable-state maintenance only.
- Real-world accuracy of throughput measurements compared to dedicated profiling tools.
What it is and what it does
about-time is a lightweight timing and throughput measurement utility that wraps code blocks, functions, and iterables to extract execution duration and iteration counts, then formats them into human-readable strings. It operates in three modes: as a context manager for arbitrary code blocks, as a wrapper for callables with optional arguments, and as an iterable wrapper that counts elements and calculates throughput while you iterate.
The package's main value is in its formatting layer—it converts raw nanosecond-to-hour durations into clean representations, applies SI or IEC scaling to element counts, and expresses throughput in human-friendly units. It has no runtime dependencies and supports Python 3.8 through 3.14.
Use it for
- Instrument performance-critical loops to log throughput in real time without polluting the loop code itself.
- Measure and compare execution times of alternative implementations in a notebook or REPL with clean, readable output.
- Track generator or iterator performance by wrapping it and accessing count and throughput metrics after iteration completes.
- Add timing annotations to function calls in a single line, capturing both duration and return value for logging or debugging.
- Monitor code block durations in production logs with human-friendly formatting that survives log aggregation systems.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package solves a real friction point—converting raw timing data into human-readable form—with zero dependencies, stable API, and broad Python version support. Use it when you need clean, readable timing instrumentation without the overhead of a full profiler. The aging maintenance status is not a blocker; the package is marked Production/Stable and has received regular updates.
Install
about-time on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Last commit 2025-07-28 and status marked as aging, but the package is marked Production/Stable and has received regular maintenance since its 2018-08-21 initial release.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
from about_time import about_time
with about_time() as t:
expensive_operation()
print(f'Duration: {t.duration_human}')
# Or with a callable:
t = about_time(some_func)
print(f'Result: {t.result}, took {t.duration_human}')
# Or with an iterable:
t = about_time(range(1000))
for item in t:
process(item)
print(f'Throughput: {t.throughput_human}')
Verify before relying
- Whether the aging maintenance status reflects active development pauses or stable-state maintenance only.
- Real-world accuracy of throughput measurements compared to dedicated profiling tools.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 387 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,841,457 / month, #2,482 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: User InterfacesTopic :: Utilities |
Evidence: about_time-4.2.2-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 › “timing profiler context manager”
- about-timeMeasures execution time and throughput of code blocks, generators,…
- viztracerVizTracer traces Python code execution and generates interactive…
- codetimingMeasures elapsed time in Python code using a flexible Timer class…
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 stopwatch.py · delta · humanreadable · alive-progress · pytimeparse · hurry.filesize · humanfriendly · pytest-durations · ago · pytimeparse2