Gevent in Pure Python
Implement an echo server, which requests a local slow HTTP server, block, and response the exact same words received for echo peer. Check the latency when sending one by one.
Gevent implement.
Implement an async echo server with select module. Encapsulate select.select and AsyncSocket.
Implement an async echo server using yield and yield from. Run by invoking ioloop.run_until_finish().
Encapsulate as Gevent-like API. Monkey patch socket.socket with AsyncSocket.
## M5
Decorate relevant function to modify their ast tree and make return yield.
## M6
Use sys.settrace to dynamic patch function instead of add decorator for relevant function.
## Bonus
Better generic recusive function to non-recusive function transform decorator.
http.client