Skip to content
/ pipdot Public

Generate a graphviz dot file representing installed PyPI distributions

License

Notifications You must be signed in to change notification settings

tanbro/pipdot

Repository files navigation

pipdot

GitHub GitHub tag (latest by date) PyPI PyPI - Status PyPI - License PyPI - Python Version docker build Docker Image Size (tag)

Generate a GraphViz dot file representing installed PyPI distributions.

Install

pip install pipdot

It's a zero-dependency package.

Usage

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:

assets/1.dot.svg

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