--- id: pytzdata version: "2020.1" license: MIT license_treatment: permissive maintenance: dormant --- # pytzdata — The Olson timezone database for Python. License: permissive · Maintenance: dormant · Downloads: 21.1M/mo ## 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 above — verify before relying. Provides access to the Olson timezone database for Python, allowing you to read timezone files and query their paths without external dependencies. 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 pip install pytzdata uv add pytzdata poetry add pytzdata ## Installing pytzdata 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_current - Install friction: low - Maintenance: dormant - Downloads: 21.1M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags timezone database python, olson timezone files, timezone data access, tz file reader, timezone path lookup, zoneinfo python, timezone bundled data, timezone-data, olson-database, bundled-data [View on SkillFed](https://skillfed.io/packages/pytzdata) · [View on PyPI](https://pypi.org/project/pytzdata/)