Metadata-Version: 2.4
Name: deprecated-checker
Version: 1.0.13
Summary: Tool for checking deprecated dependencies in Python projects and suggesting alternatives
Home-page: https://github.com/julicq/deprecated-checker
Author: Iulian Pavlov
Author-email: Iulian Pavlov <iulianpavlov@icloud.com>
Maintainer-email: Iulian Pavlov <iulianpavlov@icloud.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/julicq/is-deprecated-or-not
Project-URL: Documentation, https://github.com/julicq/is-deprecated-or-not#readme
Project-URL: Repository, https://github.com/julicq/is-deprecated-or-not
Project-URL: Issues, https://github.com/julicq/is-deprecated-or-not/issues
Project-URL: Changelog, https://github.com/julicq/is-deprecated-or-not/releases
Keywords: dependencies,deprecated,security,python,cli
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer>=0.9.0
Requires-Dist: rich>=13.0.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: requests>=2.28.0
Requires-Dist: packaging>=23.0
Requires-Dist: toml>=0.10.0
Requires-Dist: schedule>=1.2.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: flake8>=6.0.0; extra == "dev"
Requires-Dist: mypy>=1.0.0; extra == "dev"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# 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

```bash
pip install -r requirements.txt
```

## Usage

### CLI Interface (Recommended)

```bash
# 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

```bash
# Run demonstration of all capabilities
python demo_cli.py
```

### Legacy method (deprecated_checker.py)

```bash
# 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](CLI_GUIDE.md) - Detailed guide for using the CLI interface
- [Data Collector Guide](DATA_COLLECTOR_GUIDE.md) - Information about collecting deprecated package data
- [Parser Summary](PARSER_SUMMARY.md) - Details about dependency parser work 
