Sharing PyPi/Maven dependency data
As time is always running out, i don't think i'll have the time in a while to work again on the data I collected for the last three articles, Going offline with Maven, State of the Maven/Java dependency graph and State of the PyPi/Python dependency graph.
So, as it took me a long time to build these datasets and even if the datasets were already available on the github project, i want to make it publicly available and define the metadata properly so anyone can reuse them freely. The only licence i'm putting it on is Creative Commons, so you're free to use it, re-adapt it, publish based on it, or use it for commercial purposes, as long as you mention me (Olivier Girardot <o.girardot (at) lateral-thoughts.com>) as author.
So the dataset is divided in three files, compressed using LZMA :
mvn-deps.csv.lzma and mvn-minimal-deps.csv.lzma
mvn-deps consists in all the Maven artifacts extracted from Maven central repositories and mvn-minimal-deps is the minimal set of dependencies you need to for going offline with Maven, once uncompressed both files are a simple tab-separated csv document with the following columns :
- artifactId
- groupId
- version
- dependencies : as a base64 encoded json string with the following keys : artifactId, groupId, versionex: {'artifactId': 'log4j', 'groupId': 'log4j', 'version':'1.0.3'}
pypi-deps.csv.lzma
pypi-deps consists in all the PyPi dependencies, once again it's a tab-separated csv document with the following columns :
- name
- version
- dependencies : as a base64 encoded json string with the following keys : name, versionex: {'artifactId': 'log4j', 'groupId': 'log4j', 'version':'1.0.3'}
An example on how to treat this file to extract it as a networkx graph is available in the github project's IPython notebook that you need to download as a raw file to use it with IPython.
I'd be glad that following Hilary Mason posts on sharing data with academics some publications were to use these datasets, if any does, please feel free to comment on this blog post to link to your remixed work.
Vale
Newsletter
Stay updated with new articles.
Keep reading

Going offline with Maven
At [Lateral-Thoughts](http://www.lateral-thoughts.com "LT"), we organize at least once a year, what we call a "Timeoff" where we get together in a nice place and hack on what we want. It can be a lear...
Jan 14, 2013
State of the Maven/Java dependency graph
So here it comes, the second part of a three part articles on dependencies in different world, [the first part was about Python/PyPi dependencies](http://ogirardot.wordpress.com/2013/01/05/state-of-th...
Jan 11, 2013
State of the Python/PyPi dependency graph
I usually work in Java/Maven environment, so when I explain to people that Python also has a package manager - a bit less heavy than maven - and that it's working pretty well, I always have to answer...
Jan 5, 2013
No comments yet. Be the first to comment!