$npx skillfedfor your agent

deprecat

Python @deprecat decorator to deprecate old python classes, functions or methods.

With conditionsPyPI Python ModulesReleased Jul 2024350.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — deprecat-2.1.3-py2.py3-none-any.whl
v2.1.3 · released 2024-07-24 · Python >=3.6 · 1 runtime deps: wrapt

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

LicenseMIT permissive
Python supportSupports the current Python release >=3.6
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
wrapt
MaintenanceDormant 751 days since the last release
Last repo commit
First released
Downloads350,821 / month, #7,327 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
deprecation decorator pythonmark function deprecateddeprecation warningpython deprecate decoratorclass method deprecationsphinx deprecationdeprecation management
Topics
api-lifecycledocumentation-integration
PyPI keywords
deprecatedeprecateddeprecationwarningwarndecorator

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

idna Worth it
PyPI · Python Modules · released Jun 2026

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.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

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.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

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…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also Deprecated · deprecation · pyDeprecate · legacy-api-wrap · zope.deprecation · griffe-warnings-deprecated · debtcollector · deprecation-alias · public · apify-shared