Check and update libraries in a requirements file
Project description
Requirements Checker
This is a Python 3 program that checks if the libraries in the requirements file are up to date.
Usage
This script is uploaded to the https://pypi.org website at the URL: https://pypi.org/project/check-library. To use this script and check/update your libraries, you need to install the pip library using the following command: pip3 install check-library
.
After installation, run the following command to execute the script and get help:
check-library --help
It will provide you with all the necessary specifications:
usage: check_library [-h] [-p FILE] [-v] [-f]
Check if the libraries in the requirements.txt file are up to date
optional arguments:
-h, --help show this help message and exit
-p FILE, --path FILE Path of the requirements file
-o FILE, --output FILE Output path of the new requirements file
-v, --verbose Display additional information
-f, --force Overwrite the requirements file
-
check-library
You can use the script with no options. It will take therequirements.txt
file at the same location as your current path, check the libraries, and create another filerequirements-output.txt
as the updated version. -
check-library -p Lib/requirements.txt
orcheck-library --path Lib/requirements.txt
In this example, it will take therequirements.txt
file located in Lib/, check the libraries, and create another filerequirements-output.txt
at the same location as your current path with the default name (requirements-output.txt). -
check-library -p Lib/requirements.txt -o updated_requirements.txt
In this example, it will take therequirements.txt
file located in Lib/, check the libraries, and create another fileupdated_requirements.txt
as the updated version at the same location as your current path. -
check-library -p Lib/requirements.txt -v -f
These two new options allow the script:- -v: Verbose (default: False). To set it as True, simply add -v at the end of your queries.
- -f: Erases the input file to include new libraries inside.
Project details
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
File details
Details for the file check_library-1.0.4.tar.gz
.
File metadata
- Download URL: check_library-1.0.4.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6bbfc1328b8a80acbec0e493883665f82ecb1466c03ce87947a06089d2cb577 |
|
MD5 | ebce15efc352f580736f77ab2815d249 |
|
BLAKE2b-256 | 331e79e8951eb6fa61bfa0451c64ad91987da0847eb75e0149118414271d052c |
File details
Details for the file check_library-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: check_library-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5c3f398180bb6b3cb7cf2baa3807eddb60bbec5a371fed598d740776ccbab56 |
|
MD5 | bdbf50f7670b83f3b999165a4b2ad9d2 |
|
BLAKE2b-256 | 60734bb085146d040084b8832d4bd3e6b2d105d066e4cf7af88c664837680ed6 |