Tool for checking deprecated dependencies in Python projects and suggesting alternatives
Project description
Deprecated Checker
Tool for checking deprecated dependencies in Python projects and suggesting alternatives.
Features
- Automatic detection of deprecated packages
- Analysis of requirements.txt, setup.py, pyproject.toml
- Suggestion of alternative packages
- Beautiful reports with Rich
- Fast checking via CLI
- Automatic update scheduler
- Data export in various formats
Installation
pip install -r requirements.txt
Usage
CLI Interface (Recommended)
# Check current directory
python utils/cli.py check
# Check specific project
python utils/cli.py check --path /path/to/project
# Export to JSON
python utils/cli.py check --export json --output report.json
# Verbose output
python utils/cli.py check --verbose
# View database statistics
python utils/cli.py stats
# Search for package information
python utils/cli.py search requests
# Update database
python utils/cli.py update-db --source all
Demonstration
# Run demonstration of all capabilities
python demo_cli.py
Legacy method (deprecated_checker.py)
# Check current directory
python deprecated_checker.py
# Check specific directory
python deprecated_checker.py --path /path/to/project
# Export to JSON
python deprecated_checker.py --export json
# Export to YAML
python deprecated_checker.py --export yaml
Example Output
Checking deprecated dependencies...
Found deprecated packages:
• django-cors-headers==3.14.0 → django-cors-headers>=4.0.0
• requests==2.28.0 → httpx>=0.24.0 (recommended)
Safe packages:
• fastapi==0.104.0
• pydantic==2.4.0
Project Structure
is-deprecated-or-not/
├── core/
│ ├── __init__.py
│ ├── checker.py # Main checking logic
│ ├── config_manager.py # Configuration management
│ ├── data_collector.py # Data collection
│ ├── database.py # Deprecated packages database
│ ├── parser.py # Dependency file parsing
│ └── scheduler.py # Update scheduler
├── data/
│ └── deprecated_packages.yaml
├── utils/
│ ├── __init__.py
│ └── cli.py # CLI interface
├── config/
│ └── collector_config.yaml
├── cache/ # Data cache
├── logs/ # Logs
├── demo_cli.py # Demonstration script
├── deprecated_checker.py # Legacy interface
└── CLI_GUIDE.md # CLI guide
Documentation
- CLI Guide - Detailed guide for using the CLI interface
- Data Collector Guide - Information about collecting deprecated package data
- Parser Summary - Details about dependency parser work
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deprecated_checker-1.0.2.tar.gz
(24.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deprecated_checker-1.0.2.tar.gz.
File metadata
- Download URL: deprecated_checker-1.0.2.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1194b03afa9a8bef672914efd644c90998834c0cbf4f4209743e53d9614392e9
|
|
| MD5 |
a4c9817cacaeba35f21eda5486434a31
|
|
| BLAKE2b-256 |
f7a6b929c5fec3a7c78c0bcad083da5ad3b587f78183dc47961a08ee03356124
|
File details
Details for the file deprecated_checker-1.0.2-py3-none-any.whl.
File metadata
- Download URL: deprecated_checker-1.0.2-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ebbe14f61fd3075256ca5edde017528d0149e6b03ed06781a59afdd0e3f5ef1
|
|
| MD5 |
43034c2456a5f9a9c43cdc9273bd1f97
|
|
| BLAKE2b-256 |
3af011d540c6666093030d7647ab9a6d2ebaf46c38f02ed68885cf5955e23d41
|