[Catalog-sig] I wish for timestamps on pypi-hosted files.

"Martin v. Löwis" martin at v.loewis.de
Sat Oct 25 04:02:23 CEST 2008


> The subject line pretty much says it all.  I'd like to know when those
> files were uploaded.

They are available already, please take a look at (say)

http://pypi.python.org/packages/2.6/m/mock/

To retrieve the file name programmatically, you can use the HEAD verb,
and look at the Last-Modified header.

$ telnet pypi.python.org http
Trying 82.94.164.163...
Connected to ximinez.python.org.
Escape character is '^]'.
HEAD /packages/2.6/m/mock/mock-0.4.0-py2.6.egg  HTTP/1.0
Host: pypi.python.org

HTTP/1.1 200 OK
Date: Sat, 25 Oct 2008 01:57:18 GMT
Server: Apache/2.2.3 (Debian) mod_fastcgi/2.4.2
Last-Modified: Sun, 12 Oct 2008 16:23:10 GMT
ETag: "51409c-16ac-cc5f7780"
Accept-Ranges: bytes
Content-Length: 5804
Connection: close
Content-Type: application/octet-stream

Regards,
Martin


More information about the Catalog-SIG mailing list