This is the Python part of the snyk-python-plugin.
Given a fully installed Python package with its dependencies (using a virtual environment), it analyzes and returns the dependency tree.
The entry point is main
in pip_resolve.py
.
The parts 1 and 5 require access to the Python environment and thus have to be implemented in Python. The part 3, for requirements.txt, leverages the existing parsing library (pip).