Snyk Dependency Extractor
Project description
snyk-dependency-extractor
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.
- Free software: GNU General Public License v3.0
Features
- Extract all dependencies from a Snyk group into a csv in the local folder
Todo
- Configure output folder/file
- Enable multiple output formats, json/parquet
- Pypi package
- CLI command
- Proper docs/testing
- Pipeline
Install
Use pip
for install:
pip install snyk-depxtractor
Usage
export SNYK_TOKEN=xxxxxxx-xxxxxx-xxxx
sde dump-group-deps [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.0.tar.gz
(19.3 kB
view hashes)
Built Distribution
Close
Hashes for snyk_depxtractor-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea98e0e07fb8307d2ad7493c7fe65793b5bfed23f07978800997c929f81c0dd2 |
|
MD5 | a0c8db28aa124209d1f9963c8b00d9d8 |
|
BLAKE2b-256 | 2953f04d5be2b71b1072e0ff431b901ee82088941c51b5e9523f13205929a811 |