[Distutils] pip user-agent string

Wichert Akkerman wichert at wiggy.net
Mon Mar 23 09:44:41 CET 2015


I noticed that pip sends a pretty strange User-Agent string:

127.0.0.1 - - [23/Mar/2015:08:31:31 +0000] "GET /python/ HTTP/1.1" 200 17676 "-" "pip/6.0.8 {\x22cpu\x22:\x22x86_64\x22,\x22distro\x22:{\x22id\x22:\x22trusty\x22,\x22libc\x22:{\x22lib\x22:\x22glibc\x22,\x22version\x22:\x222.4\x22},\x22name\x22:\x22Ubuntu\x22,\x22version\x22:\x2214.04\x22},\x22implementation\x22:{\x22name\x22:\x22CPython\x22,\x22version\x22:\x222.7.6\x22},\x22installer\x22:{\x22name\x22:\x22pip\x22,\x22version\x22:\x226.0.8\x22},\x22python\x22:\x222.7.6\x22,\x22system\x22:{\x22name\x22:\x22Linux\x22,\x22release\x22:\x223.13.0-46-generic\x22}}"

This looks like a strangely encoded JSON blob. Can that be changed to something more human readable and parseable by standard log analysers?

Wichert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20150323/23dc86ab/attachment.html>


More information about the Distutils-SIG mailing list