微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Pykka Python的并发编程工具包

程序名称:Pykka

授权协议: Apache

操作系统: 跨平台

开发语言: Python

Pykka 介绍

Pykka 项目的目的是为 Python 提供了易用的并发操作抽象层,使用 Actor 模式。

Pykka 提供了 Actor API ,包含两种不同的实现:

  • 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.

Pykka 的名称来源于 JVM 的 Akka,但这并不是 Akka 的 Python
语言移植。

Pykka 官网

http://pykka.readthedocs.org/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐