[Catalog-sig] PyPI API

Richard Jones richard at python.org
Sat Feb 9 04:00:58 CET 2013


On 9 February 2013 11:40, Jimmy John <jimmyislive at gmail.com> wrote:
>    I am looking at the json endpoints of modules served from pypi.python.org
> in order to obtain more info about a package like download count, author,
> description etc. e.g.
>
>    http://pypi.python.org/pypi/Django/json
>
>    I noticed that the response headers do not contain info like
> Last-Modified or Etag. Thus if I am requesting the above link periodically
> e.g. (to see if the download count has changed), I cannot make use of any
> conditional GETs (e.g. by using If-None-Match, If-Modified-Since etc). I
> have to hit the endpoint again and parse the info again. (even if nothing
> has changed)

This sounds like a quite reasonable thing to do. I would also look at
supporting HEAD requests. Could I trouble you to file a bug report for
the issue in the PyPI tracker? That will mean it's something I could
look at when I'm sprinting at PyCon.


     Richard


More information about the Catalog-SIG mailing list