Pykka aims toprovide easy to use concurrency abstractions for Python by using the actor model.
Pykka provides an actorAPI with two different implementations:
² ThreadingActor is built on the Python StandardLibrary's threading and Queue modules, and has no dependencies outside Pythonitself. It plays well together with non-actor threads.
² GeventActor is built on the gevent library. gevent is a coroutine-based Python networking librarythat uses greenlet to provide a high-level synchronous API on top of libeventevent loop. It is generally faster, but doesn't like playing with otherthreads.
Much of the naming inPykka is inspired by the Akka project which implements actors on the JVM. Though, Pykka does notaim to be a Python port of Akka.
Pykka is Open Sourceand available under the Apache License, Version 2.0.
来自 “ ITPUB博客 ” ，链接：http://blog.itpub.net/301743/viewspace-731266/，如需转载，请注明出处，否则将追究法律责任。