pytzdata
The Olson timezone database for Python.
Decision gist · record as of 2026-08-14
Yes, if you need bundled Olson timezone data and can accept a static 2020 database. The package is stable, has no dependencies, and installs cleanly. However, it is dormant—no active maintenance since 2020—so if you need current timezone updates or expect ongoing support, verify alternatives first.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- However, the package is dormant—last release was 2020-07-13 and last commit 2024-01-06, so it receives no active maintenance.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.
last release 2020-07-13 (2223 days) · last repo commit 2024-01-06 · 19 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 21,148,065 downloads/mo, #1,009 on PyPI
Alternatives
Verify before relying
pip install pytzdata
from pytzdata import tz_file, tz_path
with tz_file('Europe/Paris') as f:
# Read timezone file
pass
path = tz_path('Europe/Paris')- Whether the bundled Olson database (version 2020.1) is current enough for your timezone needs.
- Compatibility with Python 2.7 support—whether your environment still needs it or can rely on Python 3.5+.
What it is and what it does
Pytzdata bundles the Olson timezone database and exposes it through a simple Python API. It lets you access timezone definition files by name (e.g., 'Europe/Paris') either as file objects or paths, and optionally point to a custom timezone directory via function call or environment variable. The package has no runtime dependencies and installs as a pure Python wheel.
The main use case is applications that need reliable timezone data without relying on the system's zoneinfo installation. It's particularly useful when you need direct access to timezone files or want to bundle timezone data with your application. The trade-off is that the bundled database is static—it was last updated in 2020 and the package itself is no longer actively maintained.
Use it for
- Access timezone definition files directly in applications that need raw Olson database content.
- Bundle timezone data with a Python application to avoid system zoneinfo dependencies.
- Query the path to a timezone file for use by other tools or libraries that expect a filesystem path.
- Set a custom timezone directory at runtime for testing or using an alternative timezone database.
- Provide timezone data in environments where system timezone files are unavailable or unreliable.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need bundled Olson timezone data and can accept a static 2020 database.
The package is stable, has no dependencies, and installs cleanly. However, it is dormant—no active maintenance since 2020—so if you need current timezone updates or expect ongoing support, verify alternatives first.
Install
pytzdata on PyPI
Before you install
Low install friction with no runtime dependencies. However, the package is dormant—last release was 2020-07-13 and last commit 2024-01-06, so it receives no active maintenance.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install pytzdata
from pytzdata import tz_file, tz_path
with tz_file('Europe/Paris') as f:
# Read timezone file
pass
path = tz_path('Europe/Paris')
Verify before relying
- Whether the bundled Olson database (version 2020.1) is current enough for your timezone needs.
- Compatibility with Python 2.7 support—whether your environment still needs it or can rely on Python 3.5+.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 2,223 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 21,148,065 / month, #1,009 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Topic :: Software Development :: Libraries :: Python Modules |
Evidence: pytzdata-2020.1-py2.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 › “timezone database python”
- pytzdataProvides access to the Olson timezone database for Python, allowing…
- django-timezone-fieldProvides Django database, form, and REST framework fields for storing…
- pytzpytz brings the Olson timezone database into Python, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules 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.
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.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also tzlocal · tzfpy · django-timezone-field · pytz · timezonefinder · tzwhere · aiozoneinfo · backports.zoneinfo · pendulum · times