Skip to main content

reqchecker

Compare python package requirements across packages by reading the specified requirements files.

Install

Clone this repository:

$ git clone https://github.com/robertson-mark/reqchecker

Install:

$ python setup.py install

Usage

reqchecker gathers requirements by using a .json file formatted as:

{
  "default": {
    "source": {"package": "path",
               "package": "path"}
            },

  "my-home": {
    "source": {"package": "path",
               "package": "path"}
            },

  "my-github": {
    "github": {"package": "branch",
               "package": "branch",
               "package": "branch"},
    "credentials": "<path_to_credentials.json>"
            }
}

A default field is required, additional sections, in this case my-local and my-github can be added and called from the command line.

  • source can be ‘local’ or ‘github’

    If ‘local’, must supply ‘path’ to repository
    If ‘github’, must also include ‘credentials’ and path to a credentials.json file

The credentials.json file looks like:

{
  "user": "github_user",
  "token": "github_token"
}

To use by calling the "defaults" section:

$ reqchecker

To change the section to read from the saved settings in "my-home":

$ reqchecker --section my-home

The user can also overwrite sections by including –packages and –locations with the my-home option, and –packages and –branches with the github option.

To call using a different .json than is in this repository:

$ reqcheckert --file <file>

History

0.1.0 (2019-12-12)

0.2.0 (2019-12-16)

  • Check local and GitHub sources for package versions in requirements.txt files

  • Basic .json formatting check

  • Include terminal output for mismatched package versions

Metadata

Release files for reqchecker 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reqchecker 0.2.1
File Size Uploaded
reqchecker-0.2.1.tar.gz 12.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reqchecker 0.2.1
File Interpreter ABI Platform
reqchecker-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 19.5 kB

Release files / reqchecker-0.2.1.tar.gz

Download URL reqchecker-0.2.1.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ab00578ad970c32ebbcddeba071196f03237cce0d90b7289dadddc50d6414e11
BLAKE2b-256 checksum
How to use checksums
ad40ab693270840e2827baa0d8022f69831eb1701554a181581650b5cf2158ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7

Release files / reqchecker-0.2.1-py2.py3-none-any.whl

Download URL reqchecker-0.2.1-py2.py3-none-any.whl
Size 7.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bef66a81fbbe45071a805a68d16c65260b42127ec1977e6b297dc21dc7655cfe
BLAKE2b-256 checksum
How to use checksums
104b21a468b9f4420ab81442566756184c3cad7f701988e1a392a4b7b892e63b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.14.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.2.1 This release

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