Skip to main content

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)

Source distribution for requirements-manager 0.1.2
File Size Uploaded
requirements_manager-0.1.2.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for requirements-manager 0.1.2
File Interpreter ABI Platform
requirements_manager-0.1.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

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