Metadata-Version: 2.3
Name: requirements-manager
Version: 0.1.2
Summary: A tool to manage Python requirements files and their backups
Project-URL: Homepage, https://github.com/whoAmI-cslim/requirements_manager
Project-URL: Bug Tracker, https://github.com/whoAmI-cslim/requirements_manager/issues
Author-email: Clyde Hunter <clyde.hunter1984@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.7
Requires-Dist: click>=8.0.0
Description-Content-Type: text/markdown

# 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

```bash
pip install requirements-manager
```

## Usage

```python
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

```bash
# 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
```bash
reqmanager cleanup --max-backups 5
```