Skip to content
Myr

gevent installation documentation

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 80cd1ee · Browse files · 3 files+23 added−2 removed
This commit

State

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

Diff stats

3 files+23 added−2 removed

  • other:+23 added−2 removed

3 files+23 added−2 removed

modified:docs/user/advanced.rst+1 added-1 removed
48 unmodified lines
49Requests has first-class support for non-blocking i/o requests, powered50by gevent. This allows you to send a bunch of HTTP requests at the same5152First, let's import the async module. Heads up — if you don't have53**gevent** installed, this will fail.::53`gevent <gevent>`_ this will fail::5455 from requests import async5657The ``async`` module has the exact same api as ``requests``, except it
114 unmodified lines
modified:docs/user/install.rst+22 added
52 unmodified lines
53Once you have a copy of the source, you can embed it in your Python package,54or install it into your site-packages easily::5556 $ python setup.py install5758.. _gevent:5960Installing Gevent61-----------------6263If you are using the ``requests.async`` module for making concurrent64requests, you need to install gevent.6566To install gevent, you'll need ``libevent``.6768OSX::6970 $ brew install libevent7172Ubuntu::7374 $ apt-get install libevent-dev7576Once you have ``libevent``, you can install ``gevent`` with ``pip``::7778 $ pip install gevent
modified:requests/models.py-1 removed
180 unmodified lines
181 response._resp = resp182 response._close = resp.close183184 if self.cookiejar:185185 response.cookies = dict_from_cookiejar(self.cookiejar)186187188 except AttributeError:
436 unmodified lines