update-reqs 🚀
A smart CLI tool to clean and update your requirements.txt by fetching the latest package versions from PyPI.
✨ Features
✅ Remove version numbers from requirements.txt (clean mode).
🚧 Fetch and update to the latest package versions from PyPI.
🔜 Preserve comments and structure in the requirements file.
🔜 Fast batch requests to PyPI for improved performance (In Progress).
🔜 Dry-run mode to preview changes before applying (Coming Soon).
🔜 Backup option before modifying requirements.txt (Coming Soon).
📦 Installation
pip install update-reqs
🚀 Usage
Basic Commands
| Command | Description |
|---|---|
update-reqs clean --file requirements.txt |
Removes all version numbers from the file. |
update-reqs update --file requirements.txt |
Updates all packages to the latest versions. |
update-reqs update --file path/to/requirements.txt |
Updates a specific requirements file. |
update-reqs --help |
Displays help and usage information. |
📌 Feature Checklist
| Feature | Status |
|---|---|
| Remove version numbers | ✅ Done |
| Fetch latest versions | 🚧 In Progress |
| Preserve comments and formatting | 🔜 Coming Soon |
| Parallelized requests for speed | 🔜 Coming Soon |
| Dry-run mode (preview updates) | 🔜 Coming Soon |
| Backup before modifying file | 🔜 Coming Soon |
🔥 How It Works
- Reads
requirements.txtand extracts package names. - Fetches the latest version of each package from PyPI.
- Updates the file while keeping comments and spacing intact.
- Writes back the updated
requirements.txt.
🤝 Contributing
Want to help improve update-reqs? Follow these steps:
- Fork the repo.
- Clone your fork:
git clone https://github.com/your-username/update-reqs.git cd update-reqs
- Install dependencies:
pip install -r requirements.txt
- Create a new branch:
git checkout -b feature-name
- Submit a Pull Request! 🚀
📜 License
This project is licensed under the MIT License.
🔹 Happy Coding!
Metadata
Release files for update-reqs 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| update_reqs-1.2.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| update_reqs-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.3 kB
Release files / update_reqs-1.2.0.tar.gz
| Download URL | update_reqs-1.2.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
87bc87f12b26e755ad8d8430102688ddba1cff0f433388d01d454d9e50aade60
|
|
BLAKE2b-256 checksum How to use checksums |
5928c081e89dbf180e31522ccc1ad6ba1d442bb33c9c98cb5af4ce8e664e706c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / update_reqs-1.2.0-py3-none-any.whl
| Download URL | update_reqs-1.2.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8c24b4499c9dc33959dcf00521b8d5656ad3b5f019a97104fedeb20b950b7ac
|
|
BLAKE2b-256 checksum How to use checksums |
979430cf68c091a43492e93f4314700876f3f83ec5b21043fd399969c36f293d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|