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
Metadata
Release files for requirements-manager 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| requirements_manager-0.1.2.tar.gz | 6.6 kB | Without provenance | Details for requirements_manager-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| requirements_manager-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for requirements_manager-0.1.2-py3-none-any.whl |
Total release size: 13.5 kB
Release files / requirements_manager-0.1.2.tar.gz
| Download URL | requirements_manager-0.1.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfee683bc70e91605c92ea81fdf014608434d147817ecb503ccb4f653ea76d3d
|
|
BLAKE2b-256 checksum How to use checksums |
84c55f9d348d8eedf230ce871444f592f0216734167470eba7935680818cbe90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Release files / requirements_manager-0.1.2-py3-none-any.whl
| Download URL | requirements_manager-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92ec498c2b7c533138624f2b029f7250b9e2d4dd81d6713cc0d6abfb5bbfbec3
|
|
BLAKE2b-256 checksum How to use checksums |
e26aa4cd08354e4995eac25dab003278526f71d3c13259a794e7b80699d1169f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.10
|
Security for requirements-manager 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.