an HTTP resource kit for Python
Restkit is an HTTP resource kit for
Python. It allows you to easily access to HTTP resource and build objects around it. It's the base of
couchdbkita Python
CouchDB_ framework.
Restkit is a full HTTP client using pure socket calls and its own HTTP parser. It's not based on httplib or urllib2.
Eventlet_ and
Gevent_ support
Chunked transfer encoding_ in both ways.
Basic Authentification_ and
OAuth_.
http://restkit.readthedocs.org
restkit requires Python 2.x superior to 2.6 (Python 3 support is coming soon)
To install restkit using pip you must make sure you have a recent version of distribute installed::
$ curl -O http://python-distribute.org/distribute_setup.py $ sudo python distribute_setup.py $ easy_install pip
To install from source, run the following command::
$ git clone https://github.com/benoitc/restkit.git $ cd restkit $ pip install -r requirements.txt $ python setup.py install
From pypi::
$ pip install restkit
restkit is available under the MIT license.
.. Chunked transfer encoding: http://en.wikipedia.org/wiki/Chunkedtransfer_encoding .. _Basic Authentification: http://www.ietf.org/rfc/rfc2617.txt .. _OAuth: http://oauth.net/