pycon logo

PyCon 2011 Atlanta

March 9th–17th

Log in or Sign Up

HTTP in Python: which library for what task?

log in to bookmark this presentaton

Novice / Talk
March 12th 4:15 p.m. – 4:45 p.m.
HTTP is the lingua franca of the web, and many things done in Python depend on it, yet HTTP in Python isn't always as good as one would expect. It's well worth knowing the options and tradeoffs available.


HTTP in Python is very much a mixed bag of available technology. What's implemented mostly works well, but there are some frustrating gaps in different libraries that are poorly documented. I've gone wading through every HTTP library I can find for Python while trying to fix an obscure bug in Mercurial and decided to write my own. I'll cover what's available today and why I'm starting from scratch with a completely new implementation.