Skip to main content

Snyk Dependency Extractor

Project description

snyk-dependency-extractor

Code Style: Black Python 3.10

Tool to extract dependencies from a Snyk group. Initial version, updates may come.

The tool uses 5 threads to process the organizations inside the group, and 4 threads for each org to process the deps. This way we can avoid slowing ourselves (mostly) by throttling on huge orgs.

Features

  • Extract all dependencies from a Snyk group into a csv in the local folder

Todo / Roadmap

  • Enable multiple output formats, json/parquet
  • Pypi package
  • CLI command
  • Proper docs/testing
  • Pipeline
  • Filtering for orgs
  • Analytics and data deduplication

Install

Use pip for install:

pip install snyk-depxtractor

Usage

export SNYK_TOKEN=xxxxxxx-xxxxxx-xxxx
sde dump-group-deps [tsv,json,parquet,all]

# all means tsv, json, parquet 🤓

If you want to setup for development:

# Install poetry using pipx
python -m pip install pipx
python -m pipx ensurepath
pipx install poetry

# Clone repository
git clone https://github.com/zsolt-halo/snyk-depxtractor.git
cd snyk-dependency-extractor/

$ # Install dependencies and hooks
$ poetry install
$ poetry run pre-commit install

Known Issues

Pokemon exception handling, we catch them all.

Will fix it eventually :)

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_depxtractor-0.1.3.tar.gz (19.2 kB view hashes)

Uploaded Source

Built Distribution

snyk_depxtractor-0.1.3-py3-none-any.whl (34.0 kB view hashes)

Uploaded Python 3

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