A Python tool to check your requirements.txt file for package updates, with optional file caching for better performance.
- Check for available updates in your requirements.txt file
- Show update severity (major/minor/patch)
- Display package homepages and changelogs when available
- Optional file caching for faster repeated checks
- Support for comments and inline comments in requirements.txt
- Ignores pre-release versions (alpha, beta, release candidates)
Install from PyPI:
Or install from the repo directly:
Or install from source:
Basic usage:
Arguments:
- requirements_file: Path to your requirements.txt file
Options:
- --no-cache: Disable file caching
- --cache-dir: Custom cache directory (default: ~/.req-update-check-cache)
The tool supports file caching to improve performance when checking multiple times. You can configure the cache storage:
The tool supports requirements.txt files with the following formats:
Note: Currently only supports exact version specifiers (==). Support for other specifiers (like >=, ~=) is planned for future releases.
You can also use req-update-check as a Python library:
To set up for development:
- Clone the repository
- Create a virtual environment: python -m venv venv
- Activate the virtual environment: source venv/bin/activate (Unix) or venv\Scripts\activate (Windows)
- Install development dependencies: pip install -e ".[dev]"
To run tests:
- python -m unittest
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.