I would like to analyze the dependency tree of Python packages. How can I obtain this data?
Things I already know
setup.pysometimes contains arequiresfield that lists package dependencies- PyPi is an online repository of Python packages
- PyPi has an API
Things that I don't know
- Very few projects (around 10%) on PyPi explicitly list dependencies in the
requiresfield butpip/easy_installstill manage to download the correct packages. What am I missing? For example the popular library for statistical computing,pandas, doesn't listrequiresbut still manages to installnumpy,pytz, etc.... Is there a better way to automatically collect the full list of dependencies? - Is there a pre-existing database somewhere? Am I repeating existing work?
- Do similar, easily accessible, databases exist for other languages with distribution systems (R, Clojure, etc...?)
