tempora
What it is and what it does
Tempora is a date and time utility library for Python that bundles commonly needed routines into a single package. It provides miscellaneous utilities and constants at the top level, a timing module for measuring and profiling code execution, a schedule module for event scheduling, and a utc module for working with UTC-aware datetime objects. The package is built on top of python-dateutil and several jaraco utility libraries, offering a convenient interface for tasks that would otherwise require multiple imports or custom implementations.
The library targets developers who need reliable datetime handling without building their own abstractions. It is actively maintained, has been in development since 2015, and supports current Python versions (3.10+). With no known vulnerabilities and a permissive Apache-2.0 license, it is a straightforward addition to projects that require scheduling, timing, or UTC datetime operations.
Use it for:
- Schedule callbacks or events to run at specific times using the schedule module.
- Measure code execution time and profile performance with the timing utilities.
- Work with UTC-aware datetime objects without manual timezone handling.
- Access common date and time constants and utilities without writing custom helpers.
- Build applications that need reliable event scheduling alongside standard datetime operations.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides utilities, constants, and routines for working with dates, times, and scheduling in Python, including timing measurement, event scheduling, and UTC-aware datetime handling.
Yes. Tempora is actively maintained, has no known vulnerabilities, carries a permissive license, and installs with low friction. It is well-suited for projects that need date/time utilities, scheduling, or timing measurement. The only caveat is verifying that its event scheduler meets your specific performance or feature requirements before committing to it in production code.
Install
tempora on PyPI
pip
pip install temporauv
uv add temporapoetry
poetry add temporaInstalling tempora
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release (31 days ago) and a commit history through 2026-07-14. Depends on five well-established packages (python-dateutil, jaraco.* utilities, typing_extensions), all of which are common and lightweight.
License in practice
Licensed under Apache-2.0 (permissive), which allows commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install tempora
import tempora
from tempora import schedule
# Create a scheduler and add an event
scheduler = schedule.CallbackScheduler()
scheduler.at(target_time, callback_function)
Requires Python 3.10 or later.
Verify before relying
- Whether the event scheduler is suitable for production use or primarily for simple use cases.
- Performance characteristics when handling large numbers of scheduled events.
- Whether UTC routines handle all edge cases (leap seconds, timezone transitions) correctly.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — python-dateutil, jaraco.collections, jaraco.context, jaraco.functools, typing_extensions |
| Maintenance | actively maintained — 31 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,084,707/month — #4,388 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tempora-5.12.0-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
schedulerAn in-process job scheduler for Python that…
copyleft · top 15,000 on PyPI
ipython-autotimeIPython extension that automatically measures…
permissive · top 15,000 on PyPI
businesstimedeltaCalculates elapsed working time between two…
permissive · top 5,000 on PyPI
scheduleSchedule provides a human-friendly API for…
permissive · top 5,000 on PyPI
timesTimes converts between universal (UTC) time and…
permissive · top 15,000 on PyPI
cron-validatorValidates Unix cron expressions, matches them…
permissive · top 5,000 on PyPI
fastf1FastF1 provides Python access to Formula 1…
permissive · top 5,000 on PyPI
SQLAlchemy-UtcProvides a SQLAlchemy DateTime type that…
permissive · top 15,000 on PyPI
cron-converterParses cron schedule strings into structured…
permissive · top 5,000 on PyPI
rq-schedulerAdds job scheduling capabilities to RQ (Redis…
permissive · top 15,000 on PyPI