[Distutils] Good news everyone, PyPI is behind a CDN

Ralf Schmitt ralf at systemexit.de
Mon May 27 23:21:15 CEST 2013


Noah Kantrowitz <noah at coderanger.net> writes:

> </farnsworth>
>
> but seriously, at long last today it was my honor to throw the DNS
> switch to move PyPI to the Fastly caching CDN. I would like to thank
> Donald Stufft for doing much of the heavy lifting on the PyPI side,
> and to Fastly for graciously offering to host us. What does this mean
> for everyone? Well the biggest change is PyPI should get a whole lot
> faster. There are two major downsides however. There will now be a
> delay of several minutes in some cases between updating a package and
> having it be installable, and download counts will now be even more
> incorrect than they were before. The PyPI admins are discussing what
> to do about download counts long-term, but for now we all feel that
> the performance and availability benefits outweigh the loss. If anyone
> has any questions, or hears anything about issues with PyPI please
> don't hesitate to contact me.
>
> --Noah


the xmlrpc api is broken when using http 1.0. the second call to curl
uses http/1.0 and returns an empty response:

$ cat >body.txt <<EOF
<?xml version='1.0'?>
<methodCall>
<methodName>package_releases</methodName>
<params>
<param>
<value><string>e</string></value>
</param>
</params>
</methodCall>
EOF
$ curl -X POST -d @body.txt http://pypi.python.org/pypi --header "Content-Type:text/xml"
<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><array><data>
<value><string>1.4.5</string></value>
</data></array></value>
</param>
</params>
</methodResponse>
$ curl -0 -X POST -d @body.txt http://pypi.python.org/pypi --header "Content-Type:text/xml"
$ 


More information about the Distutils-SIG mailing list