Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #39423

Re: pypi changelog api

Date 2013-02-21 14:33 +0100
From Philipp Hagemeister <phihag@phihag.de>
Subject Re: pypi changelog api
References <cdda4f14-2167-42ca-bac8-630f6f5cff86@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2164.1361453634.2939.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi Gregg,

to get a smaller response, you can simply pass in a timestamp, like this:

>>> client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi')
>>> import time
>>> client.changelog(int(time.time() - 600))
[['vs.bootstrap.plonetheme', '1.0.1', 1361451748, 'update description,
classifiers'], ['numericalunits', '1.11', 1361451759, 'new release'],
['numericalunits', '1.11', 1361451760, 'add source file
numericalunits-1.11.tar.gz'], ['autobahn_rce', '0.6.0', 1361451798,
'remove'], ['vs.bootstrap.plonetheme', '1.0.1', 1361451816, 'update
description, classifiers'], ['vs.bootstrap.plonetheme', '1.0.1',
1361451882, 'update description, classifiers'], ['autobahn_rce',
'0.5.9', 1361451956, 'new release'], ['autobahn_rce', '0.5.9',
1361451971, 'add source file autobahn_rce-0.5.9.tar.gz']]

I don't think there's way to get older chunks of the changelog though.
What would you need those for?

If you need the entire changelog, just download it once (it's not that
large, barely 40MB). Here it is, up until 1361452402 (now):

http://phihag.de/2013/pypi-changelog-2013-02-20.json.bz2

What I'd like is a real-time push service of changelog entries, but I'm
not certain that would be scalable.

Cheers,

Philipp


On 02/18/2013 02:16 AM, Gregg Caines wrote:
> Hey all,
> 
> I'm trying to write a script that tracks changes on pypi, and I've come across the xmlrpc interface, specifically the 'changelog' api.  It's definitely what I'm looking for, but I get an absolutely massive xml response from it at once and I was hoping there might be either some way to "page" through it with mulitple requests, or a different-but-similar API.
> 
> Thanks in advance,
> Gregg


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

pypi changelog api Gregg Caines <cainus@gmail.com> - 2013-02-17 17:16 -0800
  Re: pypi changelog api Philipp Hagemeister <phihag@phihag.de> - 2013-02-21 14:33 +0100
  Re: pypi changelog api Michael Herman <hermanmu@gmail.com> - 2013-02-21 05:52 -0800
  Re: pypi changelog api Michael Herman <hermanmu@gmail.com> - 2013-02-21 05:58 -0800
  Re: pypi changelog api Philipp Hagemeister <phihag@phihag.de> - 2013-02-21 15:04 +0100
  Re: pypi changelog api Philipp Hagemeister <phihag@phihag.de> - 2013-02-21 15:07 +0100
  Re: pypi changelog api Michael Herman <hermanmu@gmail.com> - 2013-02-21 06:15 -0800
  Re: pypi changelog api Michael Herman <hermanmu@gmail.com> - 2013-02-21 06:19 -0800

csiph-web