https://github.com/steppacodes/updates-reqs
update-reqs: A smart CLI tool that automatically updates your requirements.txt by fetching the latest versions of outdated libraries from PyPI.
https://github.com/steppacodes/updates-reqs
dependencies python
Last synced: 5 months ago
JSON representation
update-reqs: A smart CLI tool that automatically updates your requirements.txt by fetching the latest versions of outdated libraries from PyPI.
- Host: GitHub
- URL: https://github.com/steppacodes/updates-reqs
- Owner: SteppaCodes
- License: mit
- Created: 2025-03-22T15:00:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-27T02:33:46.000Z (over 1 year ago)
- Last Synced: 2025-09-25T00:39:49.169Z (9 months ago)
- Topics: dependencies, python
- Language: Python
- Homepage: https://pypi.org/project/update-reqs/
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```sh
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 |
| Check outdated packages | ✅ 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**:
```sh
git clone https://github.com/your-username/update-reqs.git
cd update-reqs
```
3. **Install dependencies**:
```sh
pip install -r requirements.txt
```
4. **Create a new branch**:
```sh
git checkout -b feature-name
```
5. **Submit a Pull Request!** 🚀
## 📜 License
This project is licensed under the MIT License.
🔹 Happy Coding!