Skip to main content

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

  1. Reads requirements.txt and extracts package names.
  2. Fetches the latest version of each package from PyPI.
  3. Updates the file while keeping comments and spacing intact.
  4. Writes back the updated requirements.txt.

🤝 Contributing

Want to help improve update-reqs? Follow these steps:

  1. Fork the repo.
  2. Clone your fork:
    git clone https://github.com/your-username/update-reqs.git
    cd update-reqs
    
  3. Install dependencies:
    pip install -r requirements.txt
    
  4. Create a new branch:
    git checkout -b feature-name
    
  5. 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)

Source distribution for update-reqs 1.2.0
File Size Uploaded
update_reqs-1.2.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for update-reqs 1.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page