Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aevent-demo

Gevent in Pure Python

M0

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.

M1

Gevent implement.

M2

Implement an async echo server with select module. Encapsulate select.select and AsyncSocket.

M3

Implement an async echo server using yield and yield from. Run by invoking ioloop.run_until_finish().

M4

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.

M5

http.client

About

Pure Gevent

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages