$npx skillfedfor your agent

pytz-deprecation-shim

Shims to make deprecation of pytz easier

SkipPyPI Software DevelopmentReleased Jun 20203.0M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl
v0.1.0.post0 · released 2020-06-17 · Python !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7 · 3 runtime deps: python-dateutil, tzdata, backports.zoneinfo

No, except in narrow circumstances. The package is abandoned and has not been updated in over four years. While it has low install friction and a permissive license, its core purpose—helping libraries deprecate pytz—is now better served by directly migrating to zoneinfo (Python 3.9+) or backports.zoneinfo (earlier versions). Use this only if you are actively maintaining a library that has already exposed pytz zones to users and need a temporary bridge; for new projects, migrate directly to zoneinfo.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 2.7 or 3.6+; the package is abandoned and receives no maintenance.
  • Low install friction with three stable runtime dependencies.
  • However, the package is abandoned as of March 2022 with no releases since June 2020, making it unsuitable for new projects or long-term maintenance.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 is permissive and poses no restriction on use or redistribution, making licensing a non-issue for adoption.

last release 2020-06-17 (2249 days) · last repo commit 2022-03-14 · 8 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,046,922 downloads/mo, #2,775 on PyPI

Verify before relying

pip install pytz-deprecation-shim

import pytz_deprecation_shim as pds
from datetime import datetime

LA = pds.timezone("America/Los_Angeles")
dt = datetime(2020, 10, 31, 12, tzinfo=LA)
print(dt)  # 2020-10-31 12:00:00-07:00
  • Whether the package still works correctly with current versions of python-dateutil, tzdata, and backports.zoneinfo.
  • Whether the shim's behavior remains compatible with modern zoneinfo implementations across all supported Python versions.
Same gist for agents: .md · .json

What it is and what it does

pytz_deprecation_shim provides timezone objects that bridge the gap between pytz's non-standard interface and the modern PEP 495 standard. It wraps timezone data to accept both the old pytz methods (localize, normalize) and the standard datetime fold attribute, emitting deprecation warnings when legacy methods are called. This allows library maintainers to remove their pytz dependency without immediately breaking code that still uses pytz-style timezone handling.

The package is explicitly designed as a temporary migration tool, not a long-term solution. It depends on python-dateutil, tzdata, and backports.zoneinfo to provide the underlying timezone data and compatibility layer. However, the project has been abandoned since June 2020 with no updates since March 2022, making it risky for new projects or those requiring ongoing support.

Use it for

  • Migrate a library away from pytz while maintaining backward compatibility with users still calling localize() and normalize().
  • Provide a deprecation path for applications that have embedded pytz zones in their public API.
  • Test datetime arithmetic across daylight saving time transitions using standard PEP 495 semantics instead of pytz's non-standard behavior.
  • Gradually transition codebases from pytz to zoneinfo by using shim zones that work with both interfaces.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No, except in narrow circumstances.

The package is abandoned and has not been updated in over four years. While it has low install friction and a permissive license, its core purpose—helping libraries deprecate pytz—is now better served by directly migrating to zoneinfo (Python 3.9+) or backports.zoneinfo (earlier versions). Use this only if you are actively maintaining a library that has already exposed pytz zones to users and need a temporary bridge; for new projects, migrate directly to zoneinfo.

Install

pytz-deprecation-shim on PyPI

Before you install

Low install friction with three stable runtime dependencies. However, the package is abandoned as of March 2022 with no releases since June 2020, making it unsuitable for new projects or long-term maintenance.

Requires Python 2.7 or 3.6+; the package is abandoned and receives no maintenance.

License in practice

Apache-2.0 is permissive and poses no restriction on use or redistribution, making licensing a non-issue for adoption.

Quickstart

pip install pytz-deprecation-shim

import pytz_deprecation_shim as pds
from datetime import datetime

LA = pds.timezone("America/Los_Angeles")
dt = datetime(2020, 10, 31, 12, tzinfo=LA)
print(dt)  # 2020-10-31 12:00:00-07:00

Verify before relying

  • Whether the package still works correctly with current versions of python-dateutil, tzdata, and backports.zoneinfo.
  • Whether the shim's behavior remains compatible with modern zoneinfo implementations across all supported Python versions.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
python-dateutiltzdatabackports.zoneinfo
MaintenanceAbandoned 2,249 days since the last release
Last repo commit
First released
Downloads3,046,922 / month, #2,775 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl

Tags

Capabilities
pytz migration helpertimezone shim deprecationreplace pytz safelydatetime timezone compatibilitypytz to zoneinfo transition
Topics
timezone-migrationdeprecated-tool

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 › “pytz migration helper”

  • pytz-deprecation-shimProvides drop-in timezone shims that support both the standard PEP…
  • pytzpytz brings the Olson timezone database into Python, enabling…
  • oslo.dboslo.db provides database connectivity and ORM utilities for…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also pytz · tzlocal · tzdata · backports.zoneinfo · django-timezone-field · tzfpy · DateTime · iso8601 · whenever