### Navigation

- index
- next |
- aioeventlet 0.4 documentation »

# aioeventlet

aioeventlet implements the asyncio API (PEP 3156) on top of eventlet. It makes possible to write asyncio code in a project currently written for eventlet.

aioeventlet allows to use greenthreads in asyncio coroutines, and to use asyncio coroutines, tasks and futures in greenthreads: see `yield_future()` and `wrap_greenthread()` functions.

The main visible difference between aioeventlet and trollius is the behaviour of `run_forever()`: `run_forever()` blocks with trollius, whereas it runs in a greenthread with aioeventlet. It means that aioeventlet event loop can run in an greenthread while the Python main thread runs other greenthreads in parallel.

- aioeventlet documentation
- aioeventlet project in the Python Cheeseshop (PyPI)
- aioeventlet project at Bitbucket
- Copyright/license: Open source, Apache 2.0. Enjoy!

# Table Of Contents

- Usage
  - Use aioeventlet with trollius
  - Use aioeventlet with asyncio
  - Threads
  - Debug mode
- API
  - yield_future
  - wrap_greenthread
- Installation
  - Install aioeventlet with pip
  - Install aioeventlet on Windows with pip
  - Manual installation of aioeventlet
- Run tests
  - Run tests with tox
  - Run tests manually
- To do
- eventlet issues
- eventlet and Python 3
- asyncio in OpenStack
  - First part (in progress): add support for trollius coroutines
  - Second part (to do): rewrite code as trollius coroutines
  - Last part (to do): drop eventlet
  - History
- Changelog
  - 2014-12-03: Version 0.4
  - 2014-11-23: version 0.3
  - 2014-11-21: version 0.2
  - 2014-11-19: version 0.1

# Event loops

Projects used by aioeventlet:

- asyncio documentation
- trollius documentation
- tulip project
- eventlet documentation
- eventlet project
- greenlet documentation

See also:

- aiogevent: asyncio API implemented on top of gevent
- geventreactor: gevent-powered Twisted reactor
- greenio: Greenlets support for asyncio (PEP 3156)
- tulipcore: run gevent code on top of asyncio

### Navigation

- index
- next |
- aioeventlet 0.4 documentation »