Adjust the package revision; no actual code changes
[packages/trusty/python-eventlet.git] / eventlet / doc / index.rst
1 Eventlet Documentation
2 ====================================
3
4 Code talks!  This is a simple web crawler that fetches a bunch of urls concurrently::
5
6     urls = ["http://www.google.com/intl/en_ALL/images/logo.gif",
7          "https://wiki.secondlife.com/w/images/secondlife.jpg",
8          "http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif"]
9
10     import eventlet
11     from eventlet.green import urllib2
12
13     def fetch(url):
14       return urllib2.urlopen(url).read()
15
16     pool = eventlet.GreenPool()
17     for body in pool.imap(fetch, urls):
18       print("got body", len(body))
19
20 Contents
21 =========
22
23 .. toctree::
24    :maxdepth: 2
25
26    basic_usage
27    design_patterns
28    patching
29    examples
30    ssl
31    threading
32    zeromq
33    hubs
34    testing
35    environment
36
37    modules
38
39    authors
40    history
41
42 License
43 ---------
44 Eventlet is made available under the terms of the open source `MIT license <http://www.opensource.org/licenses/mit-license.php>`_
45
46 Indices and tables
47 ==================
48
49 * :ref:`genindex`
50 * :ref:`modindex`
51 * :ref:`search`