Pykka 項目的目的是爲 Python 提供了易用的併發操做抽象層,使用 Actor 模式。編程
Pykka 提供了 Actor API ,包含兩種不一樣的實現:併發
ThreadingActor is built on the Python Standard Library’sthreadingandQueuemodules, and has no dependencies outside Python itself. It plays well together with non-actor threads.ide
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.oop
Pykka 的名稱來源於 JVM 的 Akka,但這並非 Akka 的 Python 語言移植。
網站
項目主頁:http://www.open-open.com/lib/view/home/1337045518713ui
Akka的原始網站在:http://akka.io/。ci
Akka是基於Actor時間編程模型的實現,最初是基於Scala的,如今有了Java等移植。get