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.2.tar.gz
(19.2 kB
view hashes)
Built Distribution
Close
Hashes for snyk_depxtractor-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a936c524bb2f2e39e87ca39c46b6a67d18b92a6ccad3c3fd1a1bca3777a8676e |
|
MD5 | a6a4bd88bc14bdafa94b48787f4a9a8c |
|
BLAKE2b-256 | c9d727e673123d3d7300be6c7912a9e0cc6efe29276f8bc98c56a4897c205896 |