[Distutils] does pypi or red-dove have a better firehose API than "download all the packages"?

holger krekel holger at merlinux.eu
Fri May 24 11:39:56 CEST 2013


On Sat, May 18, 2013 at 00:16 +0000, Vinay Sajip wrote:
> Daniel Holth <dholth <at> gmail.com> writes:
> 
> > Is there an API for "all the metadata for everything" that doesn't
> > require one web request per package version? Maybe something like an
> > rdiff-backup of a database?
> 
> Well, the red-dove.com metadata works at three levels:
> 
> http://www.red-dove.com/pypi/projects/projects.json
> 
> gives a list of all PYPI project names, then e.g.
> 
> http://www.red-dove.com/pypi/projects/W/wheel/project.json
> 
> gives all the version numbers for wheel with download URLs, MD5 hashes (and
> importantly, dependencies) and e.g.
> 
> http://www.red-dove.com/pypi/projects/W/wheel/package-1.0.0a2.json
> 
> will give all the particulars of that particular wheel version, including
> dependencies, sources, build and test options, package data etc.

Nice.  How do you actually get at the dependencies?  Don't you
need to execute setup.py for that?

best,
holger

> So, the middle level gives a useful overview of a project sufficient for
> dependency resolution (it's what distlib and distil use).
> 
> The data is kept reasonably fresh by periodically looking at what's changed
> recently on PyPI and updating the metadata for new releases etc.
> 
> Regards,
> 
> Vinay Sajip
> 
> 
> 
> 
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig
> 


More information about the Distutils-SIG mailing list