deprecated
Decorator to mark Python functions and methods as deprecated with warnings.
Utilities PyPI MIT
How deprecated is used
deprecated is a dependency in 11 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 388 projects, and what it is used with below comes from all of them. Projects that use it most often also use Click (92.5%), packaging (92.5%), charset-normalizer (92.3%).
deprecated popularity over time
Gid Score 59: downloads 96, use in agent projects 70, GitHub stars 0, downloads trend 54 (each 0-100). How it is calculated.
Often used with deprecated
| Click | 92.5% of deprecated projects · 37.1× more than average |
|---|---|
| packaging | 92.5% of deprecated projects · 63.1× more than average |
| charset-normalizer | 92.3% of deprecated projects · 85.5× more than average |
| Pydantic | 91.5% of deprecated projects · 10.6× more than average |
| AnyIO | 91.2% of deprecated projects · 61.6× more than average |
| NumPy | 91.2% of deprecated projects · 15.6× more than average |
| attrs | 88.4% of deprecated projects · 127.6× more than average |
From all 388 projects in our scan that use deprecated, including the dependency samples.
By coding agent
| Claude Code | 0.2% of projects set up for it |
|---|---|
| GitHub Copilot | 0.3% of projects set up for it |
| Cursor | 0.2% of projects set up for it |
Share of public repos configured for each agent that list deprecated as a dependency.
Install
| Package | pip install deprecated |
|---|---|
| Main stacks | Python (383), Next.js (5) |
| Example projects | Paper2Poster/Paper2Poster, onlyphantom/llm-python, aws/nova-act, Decade-qiu/CookHero, YuhangChen1/Paper2All |
Alternatives to deprecated
In our scan, none of the most used tools in Utilities does the same job as deprecated: they are add-ons, companions or tools for a different task.
More in Utilities: clsx date-fns PyYAML uuid yaml js-yaml glob Lodash