Skip to main content

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 :)

Metadata

Release files for snyk-depxtractor 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snyk-depxtractor 0.1.3
File Size Uploaded Provenance Actions
snyk_depxtractor-0.1.3.tar.gz 19.2 kB Without provenance Details for snyk_depxtractor-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for snyk-depxtractor 0.1.3
File Interpreter ABI Platform Actions
snyk_depxtractor-0.1.3-py3-none-any.whl Python 3 none any Details for snyk_depxtractor-0.1.3-py3-none-any.whl

Total release size: 53.3 kB

Release files / snyk_depxtractor-0.1.3.tar.gz

Download URL snyk_depxtractor-0.1.3.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8c55e0eefb1046b06e4c09eb2e48b7024ad32516b7baeb7267b0414d6db7fbd2
BLAKE2b-256 checksum
How to use checksums
408d193d05f23faf7acd5a25b778a1fc4dd87f0b4616231b45a4d356659e074a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.0 Linux/5.11.0-1022-azure

Release files / snyk_depxtractor-0.1.3-py3-none-any.whl

Download URL snyk_depxtractor-0.1.3-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d103454b47c2ff5e05f781467f35289a8753e767f0443c53810868a92a87e17d
BLAKE2b-256 checksum
How to use checksums
1e38319a6be57109571f1789eb1549926509437d2ca5088a0d555301effa7e43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.0 Linux/5.11.0-1022-azure

Security for snyk-depxtractor 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page