Skip to main content

A package that wraps pysnyk library for easier usage from cli interfaces

Project description

A package that wraps pysnyk library for easier usage from cli interfaces

  • Free software: MIT license

Installation

$ brew reinstall readline xz # OSX only
If you're using pyenv, reinstall it # OSX only

Then install the package using pip

pip install snyk-test

You can also install the in-development version with:

pip install https://github.com/avishayil/python-snyk-test/archive/master.zip

Documentation

First, before using snyk-test you must authenticate with snyk using snyk auth Then, alter your $HOME/.config/configstore/snyk.json and add the org_id parameter to the JSON file using the following command:

$ snyk config set org_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx # Your organization ID

The JSON file will look as follows:

{
        "api": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "org_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Then, after all the prerequisites are met, run the the following command from your terminal:

snyk-test package@version

For Example:

$ snyk-test channels-redis@2.4.2

Documentation

https://python-snyk-test.readthedocs.io/

Development

To run all the tests run:

tox

Note, to combine the coverage data from all the tox environments run:

Windows

set PYTEST_ADDOPTS=--cov-append
tox

Other

PYTEST_ADDOPTS=--cov-append tox

Changelog

0.0.1 (2020-07-29)

  • First release on PyPI.

0.0.2 (2020-12-28)

  • Updated pysnyk version

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

snyk-test-0.0.2.tar.gz (18.4 kB view details)

Uploaded Source

File details

Details for the file snyk-test-0.0.2.tar.gz.

File metadata

  • Download URL: snyk-test-0.0.2.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.1

File hashes

Hashes for snyk-test-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8eab3bb510a1ddf2cc6b46fbf31cfe286cb776457f1952ec6f2eeacbe978497f
MD5 bbeac453111acea2ff20ee06eac127d7
BLAKE2b-256 ac12a03cbb73a5eaace0912de6ce0d03f35048162c6b6675061f73b1d1866702

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