Skip to main content

Check if libraries in a requirements file are up to date. Thsis script can update the 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 the requirements.txt file at the same location as your current path, check the libraries, and create another file requirements-output.txt as the updated version.

  • check-library -p Lib/requirements.txt or check-library --path Lib/requirements.txt
    In this example, it will take the requirements.txt file located in Lib/, check the libraries, and create another file requirements-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 the requirements.txt file located in Lib/, check the libraries, and create another file updated_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

check_library-1.0.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

check_library-1.0.3-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file check_library-1.0.3.tar.gz.

File metadata

  • Download URL: check_library-1.0.3.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

Hashes for check_library-1.0.3.tar.gz
Algorithm Hash digest
SHA256 754834013b7d3f53433de5d8941fe7430cdd55d98bb8bfa4ef53098f0e49cd93
MD5 5f3050c07f3941754fcc8c342c259c57
BLAKE2b-256 f9e170fee80cc3c329900c7635617dfe09354f7bd5ac51b426f3262d640f5620

See more details on using hashes here.

File details

Details for the file check_library-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for check_library-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b96dfa8eb18cbf9304f0e141a6675635c75bb1c90208cdab0db3607639fa3dc
MD5 40b0ef0b6b9019ad679020ea4846ad36
BLAKE2b-256 5a7e7f0e9bbba7c40ab225c0563554437557cd1ec6ee1e5e20e5c90fcb3a9d79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page