gevent

gevent + pyramid_socketio

Alexandre Bourget explains how he uses gevent + socketio to add functionality to a Pyramid application at https://pyvideo.org/pycon-ca-2012/gevent-socketio-cross-framework-real-time-web-li.html

gevent + long polling

https://michael.merickel.org/2011/6/21/tictactoe-and-long-polling-with-pyramid/

https://github.com/mmerickel/tictactoe

For more information on gevent see the gevent home page