zope.deprecation
Zope Deprecation Infrastructure
Decision gist · record as of 2026-08-14
Yes, if you maintain a library or large codebase and need a standard way to deprecate APIs. The package is lightweight, has no security vulnerabilities, and supports current Python versions. The aging maintenance status (336 days since release) is not a blocker for a stable utility like this, but verify that ZPL-2.1 licensing fits your project before adding it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; does not support Python 3.8 or earlier.
- Low friction install with a single runtime dependency (setuptools).
- Maintenance status is aging—last release was 336 days ago—but the repository remains active with recent commits and no archived status.
License · maintenance · safety
ZPL-2.1 (unclear) — Licensed under ZPL-2.1 (Zope Public License), classified as OSI-approved. License treatment is marked unclear in the fact sheet, so review the actual license terms before use in proprietary or restricted-license projects.
last release 2025-09-12 (336 days) · last repo commit 2025-09-22 · 4 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,872,565 downloads/mo, #2,849 on PyPI
Alternatives
Verify before relying
pip install zope.deprecation
from zope.deprecation import deprecated
@deprecated('old_function', 'Use new_function instead')
def old_function():
pass- Whether the ZPL-2.1 license is compatible with your project's licensing requirements.
- Whether the aging maintenance status (336 days since last release) is acceptable for your use case.
What it is and what it does
zope.deprecation is a small utility library for marking deprecated code paths in Python. It exports a `deprecated()` function that you apply as a decorator or call directly to flag modules, classes, functions, methods, and properties as no longer recommended. When deprecated code is accessed, the library emits a standard Python DeprecationWarning (or a custom warning class if you specify one), alerting users that they should migrate to a replacement.
The package is part of the Zope ecosystem and has been maintained since 2007. It supports modern Python versions (3.9–3.13) and runs on both CPython and PyPy. Installation is straightforward with only setuptools as a runtime dependency. The library is useful in any codebase where you need to signal API changes or removals over a deprecation period.
Use it for
- Mark old API functions as deprecated to warn users before removing them in a major version.
- Signal that a module or class is being replaced, guiding users to the new implementation.
- Suppress deprecation warnings in specific code blocks using the Suppressor context manager.
- Customize warning classes to integrate deprecation signals with your project's warning infrastructure.
- Document API transitions in libraries that maintain backward compatibility across releases.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you maintain a library or large codebase and need a standard way to deprecate APIs.
The package is lightweight, has no security vulnerabilities, and supports current Python versions. The aging maintenance status (336 days since release) is not a blocker for a stable utility like this, but verify that ZPL-2.1 licensing fits your project before adding it.
Install
zope-deprecation on PyPI
Before you install
Low friction install with a single runtime dependency (setuptools). Maintenance status is aging—last release was 336 days ago—but the repository remains active with recent commits and no archived status.
Requires Python 3.9 or later; does not support Python 3.8 or earlier.
License in practice
Licensed under ZPL-2.1 (Zope Public License), classified as OSI-approved. License treatment is marked unclear in the fact sheet, so review the actual license terms before use in proprietary or restricted-license projects.
Quickstart
pip install zope.deprecation
from zope.deprecation import deprecated
@deprecated('old_function', 'Use new_function instead')
def old_function():
pass
Verify before relying
- Whether the ZPL-2.1 license is compatible with your project's licensing requirements.
- Whether the aging maintenance status (336 days since last release) is acceptable for your use case.
Package facts
| License | ZPL-2.1 unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagesetuptools |
| Maintenance | Aging 336 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,872,565 / month, #2,849 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Framework :: Zope :: 3Intended Audience :: DevelopersLicense :: OSI Approved :: Zope Public LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: zope_deprecation-6.0-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 › “python deprecation utility”
- zope.deprecationProvides a decorator and utilities to mark Python modules, classes,…
- zope.deferredimportDefers module imports until they are actually used, optionally…
- deprecationProvides decorators to automate deprecation warnings, update…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
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.
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.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
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.
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.
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.
See also zope.deferredimport · zope.dottedname · zope.exceptions · deprecat · Deprecated · deprecation · deprecation-alias · zExceptions · ExtensionClass · griffe-warnings-deprecated