Skip to main content

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

Project details


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.29.tar.gz (29.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deprecated_checker-1.0.29-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file deprecated_checker-1.0.29.tar.gz.

File metadata

  • Download URL: deprecated_checker-1.0.29.tar.gz
  • Upload date:
  • Size: 29.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for deprecated_checker-1.0.29.tar.gz
Algorithm Hash digest
SHA256 6ba5943e617b4cc11775c6b0d04350ddf249386be04f3dea53a35a801354152f
MD5 1b7aaa60e9396954d3d4a68931841825
BLAKE2b-256 cd8ba4c8f1323ecaa85ba1815958cce97998bb76f2ff89c2e3119855f19cfddc

See more details on using hashes here.

File details

Details for the file deprecated_checker-1.0.29-py3-none-any.whl.

File metadata

File hashes

Hashes for deprecated_checker-1.0.29-py3-none-any.whl
Algorithm Hash digest
SHA256 88cc465f5797ce3491d0d6c4dbfdcd7da077d00ebf96d4c7aa77e2539f3f6bec
MD5 75bb6922ecc787da046dce6cc3a1eaaf
BLAKE2b-256 f74e9a48497687a1d01c2516e361e1a747eea4c405da56cf002ccb41f4004533

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page