deprecat
Python @deprecat decorator to deprecate old python classes, functions or methods.
Decision gist · record as of 2026-08-14
Yes, if you are maintaining a library and need a simple, zero-configuration way to emit deprecation warnings. The package is stable, has no vulnerabilities, and requires only one lightweight dependency. Maintenance is dormant, but the decorator pattern itself is stable and unlikely to need updates. Not recommended if you need active support or expect frequent maintenance.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.6; wrapt must be installed (handled automatically by pip).
- Low install friction with a single runtime dependency (wrapt).
- Maintenance is dormant—last commit 2024-07-24—but marked Production/Stable with no known vulnerabilities, so usable for straightforward deprecation tasks.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or open-source projects with minimal restrictions.
last release 2024-07-24 (751 days) · last repo commit 2024-07-24 · 16 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 350,821 downloads/mo, #7,327 on PyPI
Alternatives
Verify before relying
pip install deprecat
from deprecat import deprecat
@deprecat(reason="use new_function instead", version='2.0')
def old_function(x):
return x * 2
old_function(5) # Emits DeprecationWarning- Whether the package handles all edge cases in Python 3.10 and 3.9 given dormant maintenance status.
- Performance impact of the wrapt dependency in high-throughput code paths.
What it is and what it does
deprecat is a lightweight decorator library for marking Python functions, methods, and classes as deprecated. When a user calls a deprecated target, the decorator emits a standard DeprecationWarning with a custom reason and version number, helping library maintainers signal API changes without breaking existing code.
The package includes a Sphinx integration that automatically injects deprecation notices into docstrings, making the deprecation visible in generated documentation. It supports deprecating individual keyword arguments as well, allowing fine-grained control over which parts of an API are being phased out. The single runtime dependency is wrapt, and installation is straightforward.
Use it for
- Signal to users that a function or method will be removed in a future version, with a custom reason and target version.
- Automatically inject deprecation warnings into Sphinx-generated API documentation without manual docstring edits.
- Deprecate specific keyword arguments in a function while keeping the function itself active.
- Emit warnings when a class is instantiated to guide users toward a replacement class.
- Track and communicate API changes across library versions in a standardized, Python-native way.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are maintaining a library and need a simple, zero-configuration way to emit deprecation warnings.
The package is stable, has no vulnerabilities, and requires only one lightweight dependency. Maintenance is dormant, but the decorator pattern itself is stable and unlikely to need updates. Not recommended if you need active support or expect frequent maintenance.
Install
deprecat on PyPI
Before you install
Low install friction with a single runtime dependency (wrapt). Maintenance is dormant—last commit 2024-07-24—but marked Production/Stable with no known vulnerabilities, so usable for straightforward deprecation tasks.
Requires Python >=3.6; wrapt must be installed (handled automatically by pip).
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely in commercial or open-source projects with minimal restrictions.
Quickstart
pip install deprecat
from deprecat import deprecat
@deprecat(reason="use new_function instead", version='2.0')
def old_function(x):
return x * 2
old_function(5) # Emits DeprecationWarning
Verify before relying
- Whether the package handles all edge cases in Python 3.10 and 3.9 given dormant maintenance status.
- Performance impact of the wrapt dependency in high-throughput code paths.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagewrapt |
| Maintenance | Dormant 751 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 350,821 / month, #7,327 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: deprecat-2.1.3-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 › “deprecation decorator python”
- deprecatProvides a Python decorator to mark functions, methods, and classes…
- DeprecatedProvides a @deprecated decorator to mark functions, methods, and…
- zope.deprecationProvides a decorator and utilities to mark Python modules, classes,…
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 Deprecated · deprecation · pyDeprecate · legacy-api-wrap · zope.deprecation · griffe-warnings-deprecated · debtcollector · deprecation-alias · public · apify-shared