Skip to main content

Shim to easily install OWASP dependency-check-cli into Python projects

Project description

dependency-check scans application dependencies and checks whether they contain any published vulnerabilities (based on the NIST NVD). It runs in the JVM, so you need some form of java available in your PATH. The script should work on Linux, Mac OSX and Windows, but right now is only tested on Linux.

Usage

After installation, you’ll have the dependency-check command available that, on first use, will automatically download and install the OWASP release archive once for all projects. It’ll then redirect any calls to that installation, meaning the downloaded NVD data is shared amongst projects. Please see the DependencyCheck site for more configuration and usage details.

To install from PyPI, add dependency-check to your dev-requirements.txt or a similar file. For more installation options, see the next section.

To just get the dependency-check CLI tool installed into your home, independant of any project, you can use the pip script installer.

Installation Demo

Customization

Using environment variables, you can change the version and download location of the release archive, and the directory for the local installation.

Variable

Default

DEPENDENCY_CHECK_VERSION

1.3.1

DEPENDENCY_CHECK_URL

https://bintray.com/artifact/download/jeremy-long/owasp/dependency-check-{version}-release.zip

DEPENDENCY_CHECK_HOME

~/.local/dependency-check

To update to a new version of the OWASP software, delete ~/.local/dependency-check/bin/, set DEPENDENCY_CHECK_VERSION to the new version number, and call dependency-check.

Installation

dependency-check can be installed via pip install dependency-check as usual, see releases for an overview of available versions. To get a bleeding-edge version from source, use these commands:

repo="jhermann/dependency-check-py"
pip install -r "https://raw.githubusercontent.com/$repo/master/requirements.txt"
pip install -UI -e "git+https://github.com/$repo.git#egg=dependency-check"

As a developer, to create a working directory for this project, call these commands:

git clone "https://github.com/jhermann/dependency-check-py.git"
cd "dependency-check-py"
. .env --yes --develop
invoke build check

You might also need to follow some setup procedures to make the necessary basic commands available on Linux, Mac OS X, and Windows.

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

dependency-check-0.1.0.zip (19.2 kB view details)

Uploaded Source

Built Distributions

dependency_check-0.1.0-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2 Python 3

dependency_check-0.1.0-py2.7.egg (6.9 kB view details)

Uploaded Source

File details

Details for the file dependency-check-0.1.0.zip.

File metadata

File hashes

Hashes for dependency-check-0.1.0.zip
Algorithm Hash digest
SHA256 a50f45b646a93277c6b0372cd9a9252bac93849ee57ce4fe79bda3adfb73fb8f
MD5 62d061daa662ad52e49e5fb584c7ce7d
BLAKE2b-256 e8048f2aa48ace66989150ce12f07ada07ac8119f8d9458b00e8086b9b17ce4f

See more details on using hashes here.

File details

Details for the file dependency_check-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dependency_check-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c30e0b664084024b26374e6db39d5f5285a92069f5a44165c79f27609dc6770f
MD5 8897b12f10ce1d361011f8049373e58d
BLAKE2b-256 6c3d7313b09c3ae81e03bffebf6ad431e9cfa264eea3045e698e73dae013165d

See more details on using hashes here.

File details

Details for the file dependency_check-0.1.0-py2.7.egg.

File metadata

File hashes

Hashes for dependency_check-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 15ed9cad3323397404b040211ebf932741bc8e0b08af51852879615b8441a07d
MD5 e758f6c646f2d24372b08bee874e8f22
BLAKE2b-256 74891eea162ed894cefe649fb43268af51c58d749fa5ee54b86ae8637beefb00

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