allpypi
September 28, 2015 ยท View on GitHub
Layout for all PyPI packages.
All work of the pypi indexer is done by @koder-ua who hacked together the pypi crawler and graph extractor in 20 minutes (HUGE thanks!).
This repository just takes his output (a csv-like file) and computes layout of the graph.
how to generate graph?
Prerequisites
- You will need to download dependencies using
deps.py(see readme file for instructions). Once done, save it intodata/packages.csv. - Install the layouter:
git clone https://github.com/anvaka/allpypi
cd allpypi
npm install
Now you can perform the layout:
node index.js
Once layout is computed, you can use it with anvaka/pm visualization (see
README.md for details)
known bugs
The PyPI doesn't expose dependencies in easy to consume way. They are declared as part of the setup script (setup.py).
The parser can only match dependencies with a simple regex. Thus if your package uses complex setup.py script, most likely it will be rendered as a lonley star in the final visualization.
license
MIT