https://github.com/tanbro/pipdot
Generate a graphviz dot file representing installed PyPI distributions
https://github.com/tanbro/pipdot
dependency dependency-graph distribution graph graphviz graphviz-dot package pip pypi pypi-package
Last synced: 2 months ago
JSON representation
Generate a graphviz dot file representing installed PyPI distributions
- Host: GitHub
- URL: https://github.com/tanbro/pipdot
- Owner: tanbro
- License: bsd-3-clause
- Created: 2021-02-04T09:45:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-13T02:31:47.000Z (over 2 years ago)
- Last Synced: 2024-04-25T12:43:28.237Z (about 1 year ago)
- Topics: dependency, dependency-graph, distribution, graph, graphviz, graphviz-dot, package, pip, pypi, pypi-package
- Language: Python
- Homepage:
- Size: 407 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pipdot
[](https://github.com/tanbro/pipdot)
[](https://github.com/tanbro/pipdot/tags)
[](https://pypi.org/project/pipdot/)
[](https://pypi.org/project/pipdot/)
[](https://pypi.org/project/pipdot/)
[](https://pypi.org/project/pipdot/)
[](https://github.com/tanbro/pipdot/actions/workflows/docker-build.yml)
[](https://hub.docker.com/repository/docker/liuxueyan/pipdot)Generate a [GraphViz][] `dot` file representing installed [PyPI][] distributions.
## Install
```bash
pip install pipdot
```It's a zero-dependency package.
## Usage
When installed, we can execute the program as:
- either a standard-along command:
```bash
pipdot
```- or a python module:
```bash
python -m pipdot
```To generate a [GraphViz][] `dot` file for distributions of current Python environment:
```bash
pipdot --extras-label 1.dot
```Then convert it to a `svg` (or other formats) image:
```bash
dot -T svg -O 1.dot
```We'll get something like:

And we can use it by docker, eg:
```bash
docker run -it --rm -v "your-python-site-dir:/work" -w /work liuxueyan/pipdot -p .
```For help messages, execute:
```bash
python -m pipdot --help
```[PyPI]: https://pypi.org/
[pip]: https://pip.pypa.io/
[GraphViz]: https://graphviz.org/