Skip to content

anvaka/allpypi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

allpypi

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

  1. You will need to download dependencies using deps.py (see readme file for instructions). Once done, save it into data/packages.csv.
  2. 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

Releases

No releases published

Packages

No packages published