A tool to manage Python requirements files and their backups
Project description
Requirements Manager
A Python package for managing requirements.txt files and their backups.
This will strip the @ file portion for any packages in the requirements.txt file.
It will ask the user first if they want to strip these. If not, it will simply replicate
running pip freeze > requirements.txt
Installation
pip install requirements-manager
Usage
from requirements_manager import handle_requirements_update, cleanup_old_backups
# Update requirements
handle_requirements_update('requirements.txt', 'new_requirements.txt')
# Clean up old backups
cleanup_old_backups(max_backups=5)
CLI Usage
# Update requirements.txt or simply generate a new requirements.txt file.
reqmanager update
# Update requirements with optional flags
reqmanager update [--source <source_file>] [--destination <destination_file>]
# Clean up backups with optional flags
reqmanager cleanup --max-backups 5 [--backup-dir <backup_directory>]
Clean up backups
reqmanager cleanup --max-backups 5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file requirements_manager-0.1.2.tar.gz.
File metadata
- Download URL: requirements_manager-0.1.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfee683bc70e91605c92ea81fdf014608434d147817ecb503ccb4f653ea76d3d
|
|
| MD5 |
bdcd21c38c4aa6eb20c710e19d15a968
|
|
| BLAKE2b-256 |
84c55f9d348d8eedf230ce871444f592f0216734167470eba7935680818cbe90
|
File details
Details for the file requirements_manager-0.1.2-py3-none-any.whl.
File metadata
- Download URL: requirements_manager-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92ec498c2b7c533138624f2b029f7250b9e2d4dd81d6713cc0d6abfb5bbfbec3
|
|
| MD5 |
66cdca3f659389f5213bdba171ed7351
|
|
| BLAKE2b-256 |
e26aa4cd08354e4995eac25dab003278526f71d3c13259a794e7b80699d1169f
|