New Package: Python-requests – HTTP for Humans
According to http://docs.python-requests.org/en/latest/index.html
Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python’s builtin urllib2 module provides most of the HTTP capabilities you should need, but the api is thoroughly broken. It requires an enormous amount of work (even method overrides) to perform the simplest of tasks.
Things shouldn’t be this way. Not in Python
>>> r = requests.get(‘https://api.github.com’, auth=(‘user’, ‘pass’))
The same sample , without using requests would look like https://gist.github.com/973705. Requests library indeed reduces the lines of code we have to write to set up HTTP requests.
The new library is available as python-requests in Fedora. You can test the packaging using the following command
yum –enablerepo=updates-testing install python-requests