2012年5月14日 星期一

Pykka: Easy to use concurrency abstractions for Python by using the actor model


Pykka provides an actor API with two different implementations:

  • ThreadingActor is built on the Python Standard Library’s threading and Queue modules, and has no dependencies outside Python itself. It plays well together with non-actor threads.
  • GeventActor is built on the gevent library. gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. It is generally faster, but doesn’t like playing with other threads.

HOWTO Use Python in the web

This document shows how Python fits into the web. It presents some ways to integrate Python with a web server, and general practices useful for developing web sites.