Generate a GraphViz dot
file representing installed PyPI distributions.
pip install pipdot
It's a zero-dependency package.
When installed, we can execute the program as:
-
either a standard-along command:
pipdot
-
or a python module:
python -m pipdot
To generate a GraphViz dot
file for distributions of current Python environment:
pipdot --extras-label 1.dot
Then convert it to a svg
(or other formats) image:
dot -T svg -O 1.dot
We'll get something like:
And we can use it by docker, eg:
docker run -it --rm -v "your-python-site-dir:/work" -w /work liuxueyan/pipdot -p .
For help messages, execute:
python -m pipdot --help