Requests: The Simple (e.g. usable) HTTP Module
==============================================
-::
-
- ::::::::: :::::::::: :::::::: ::: ::: :::::::::: :::::::: ::::::::::: ::::::::
- :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+: :+:
- +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+
- +#++:++#: +#++:++# +#+ +:+ +#+ +:+ +#++:++# +#++:++#++ +#+ +#++:++#++
- +#+ +#+ +#+ +#+ # +#+ +#+ +#+ +#+ +#+ +#+ +#+
- #+# #+# #+# #+# +#+ #+# #+# #+# #+# #+# #+# #+# #+#
- ### ### ########## ###### ### ######## ########## ######## ### ########
-
-
-
-
-Overview
---------
-
Most existing Python modules for dealing HTTP requests are insane. I have to look up *everything* that I want to do. Most of my worst Python experiences are a result of the various built-in HTTP libraries (yes, even worse than Logging).
But this one's different. This one's going to be awesome. And simple.
Uh oh, we're not authorized! Let's add authentication. ::
>>> conv_auth = requests.AuthObject('requeststest', 'requeststest')
- >>> r = requests.get('https://convore.com/api/account/verify.json', conv_auth=auth)
+ >>> r = requests.get('https://convore.com/api/account/verify.json', auth=conv_auth)
>>> r.status_code
200