[Catalog-sig] PyPI API

Jimmy John jimmyislive at gmail.com
Sat Feb 9 05:51:08 CET 2013


done...

https://sourceforge.net/tracker/?func=detail&aid=3603910&group_id=66150&atid=513503

thx
Jim

On Fri, Feb 8, 2013 at 7:00 PM, Richard Jones <richard at python.org> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/catalog-sig/attachments/20130208/5d321a41/attachment.html>


More information about the Catalog-SIG mailing list