https://github.com/mhristodor/pyreq-merger
Minimal tool used for merging 2 requirement files into a single one by either upgrading or downgrading the package versions.
https://github.com/mhristodor/pyreq-merger
python requirements tool
Last synced: 3 months ago
JSON representation
Minimal tool used for merging 2 requirement files into a single one by either upgrading or downgrading the package versions.
- Host: GitHub
- URL: https://github.com/mhristodor/pyreq-merger
- Owner: mhristodor
- License: mit
- Created: 2023-09-27T09:58:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-21T14:01:42.000Z (over 2 years ago)
- Last Synced: 2025-12-15T06:27:59.442Z (6 months ago)
- Topics: python, requirements, tool
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# pyreq-merger
Minimal tool used for merging 2 requirement files into a single one by either upgrading or downgrading the package versions.
#### Installation
Using pip inside the project directory: `pip install .`
Using pip: `pip install pyreq-merger`
#### Usage Example
`pyreq file1 file2 --method downgrade --output mynewreq.txt`
Output is a new requirement file with the specified name in the current working directory.
#### Notes
For a full list of available parameters use `pyreq -h`
```pyreq -h
usage: pyreq [-h] [-v] [-m {upgrade,downgrade}] [-o OUTPUT] first_req_file second_req_file
Merge 2 requirement files into a single file, using the specified method.
positional arguments:
first_req_file First file containing requirements
second_req_file Second file containing requirements
options:
-h, --help show this help message and exit
-v, --version Displays version then quit
-m {upgrade,downgrade}, --method {upgrade,downgrade}
Merge method, choose from: 'upgrade' or 'downgrade. (default: upgrade)
-o OUTPUT, --output OUTPUT
Output file containing merged requirements. (default: merged_requirements.txt)
Made by https://github.com/mhristodor.```