Skip to content
Myr

better title

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 79b43b2 · Browse files · 1 file+9 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−7 removed

  • other:+9 added−7 removed

1 file+9 added−7 removed

modified:docs/index.rst+9 added-7 removed
1 unmodified line
2 sphinx-quickstart on Sun Feb 13 23:54:25 2011.3 You can adapt this file completely to your liking, but it should at least4 contain the root `toctree` directive.56Requests: Python HTTP (That Doesn't Suck)!7==========================================6Requests: HTTP for Humans7=========================89Release |version|.1011Requests is an :ref:`ISC Licensed <isc>` HTTP library, written in Python.11Requests is an :ref:`ISC Licensed <isc>` HTTP library, written in Python, for human beings.1213Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python's builtin :py:class:`urllib2` module provides all the HTTP functionality I need, but it's api is **broken**. It reqires an enormous amount of work (even method ovrrides) to do the simplet of things. So, I decided to wrap it and make it super simple.13Most existing Python modules for sending HTTP requests are extremely verbose and cumbersome. Python's builtin :py:class:`urllib2` module provides all the HTTP functionality I need, but it's api is thoroughly **broken**. It reqires an enormous amount of work (even method overrides) to do the simplest of things.1415Requests allow you to send GET, HEAD, PUT, POST, DELETE requests. You can add headers, form data, miltipart files, and parameters with simple Python dictionaries.15Requests allow you to send GET, HEAD, PUT, POST, DELETE requests. You can add headers, form data, miltipart files, and parameters with simple Python dictionaries. It's powered by :py:class:`urllib2`, but it does all the hard work and crazy hacks for you.161718It's Simple19-----------
5 unmodified lines
25~~~~~~~~2627::2829 import requests30 requests.get('https://convore.com/api', auth=('username', 'password'))29 >>> import requests30 >>> r = requests.get('https://convore.com/api', auth=('username', 'password'))31 >>> r.headers['content-encoding']32 json333435urllib236~~~~~~~
25 unmodified lines