Eventlet Documentation
**********************

Code talks!  This is a simple web crawler that fetches a bunch of urls
concurrently:

   urls = [
       "http://www.google.com/intl/en_ALL/images/logo.gif",
       "http://python.org/images/python-logo.gif",
       "http://us.i1.yimg.com/us.yimg.com/i/ww/beta/y3.gif",
   ]

   import eventlet
   from eventlet.green import urllib2

   def fetch(url):
       return urllib2.urlopen(url).read()

   pool = eventlet.GreenPool()
   for body in pool.imap(fetch, urls):
       print("got body", len(body))


Contents
********

* Basic Usage

* Primary API

  * Greenthread Spawn

  * Greenthread Control

  * Patching Functions

  * Network Convenience Functions

* Design Patterns

  * Client Pattern

  * Server Pattern

  * Dispatch Pattern

* Greening The World

  * Import Green

  * Monkeypatching the Standard Library

* Examples

  * Web Crawler

  * WSGI Server

  * Echo Server

  * Socket Connect

  * Multi-User Chat Server

  * Feed Scraper

  * Port Forwarder

  * Recursive Web Crawler

  * Producer Consumer Web Crawler

  * Websocket Server Example

  * Websocket Multi-User Chat Example

* Using SSL With Eventlet

  * With Python 2.6

  * With Python 2.5 or Earlier

  * PyOpenSSL

* Threads

  * Tpool - Simple thread pool

* Zeromq

  * What is ØMQ?

  * API documentation

* Understanding Eventlet Hubs

  * How the Hubs Work

  * More Hub-Related Functions

* Testing Eventlet

  * Doctests

  * Standard Library Tests

  * Testing Eventlet Hubs

  * Writing Tests

  * Coverage

* Environment Variables

* Module Reference

  * "backdoor" – Python interactive interpreter within a running
    process

  * "corolocal" – Coroutine local storage

  * "dagpool" – Dependency-Driven Greenthreads

  * Module Contents

  * "debug" – Debugging tools for Eventlet

  * "db_pool" – DBAPI 2 database connection pooling

  * "event" – Cross-greenthread primitive

  * "greenpool" – Green Thread Pools

  * "greenthread" – Green Thread Implementation

  * "pools" - Generic pools of resources

  * "queue" – Queue class

  * "semaphore" – Semaphore classes

  * "timeout" – Universal Timeouts

  * "websocket" – Websocket Server

  * "wsgi" – WSGI server

  * "eventlet.green.zmq" – ØMQ support

* Authors

  * Maintainer (i.e., Who To Hassle If You Find Bugs)

  * Original Authors

  * Contributors

  * Linden Lab Contributors

  * Thanks To

* History


License
=======

Eventlet is made available under the terms of the open source MIT
license


Indices and tables
******************

* Index

* Module Index

* Search Page
