actors-0.5.1b1
توضیحات
Lightweight actor framework with supervision
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | actors-0.5.1b1 |
| نام | actors |
| نسخه کتابخانه | 0.5.1b1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Thomas Amland |
| ایمیل نویسنده | thomas.amland@googlemail.com |
| آدرس صفحه اصلی | https://github.com/tamland/python-actors/ |
| آدرس اینترنتی | https://pypi.org/project/actors/ |
| مجوز | Apache License 2.0 |
============
PythonActors
============
A python actor framework.
.. image:: https://img.shields.io/pypi/v/actors.svg
:target: https://pypi.python.org/pypi/actors
Features
--------
* Easy to build concurrency with the actor model.
* Lightweight. Can run millions of actors on a single thread.
* Integrated supervision for managing actor lifetime and faults.
* Extensible with new executors and dispatchers.
* An Akka-like API.
Installation
------------
Install from `PyPI <https://pypi.python.org/pypi/actors/>`_ using ``pip``:
.. code-block:: bash
$ pip install actors
Obligatory greeter
------------------
.. code-block:: python
from actors import Actor, ActorSystem
class Greeter(Actor):
def receive(self, message):
print("Hello %s" % message)
system = ActorSystem()
greeter = system.actor_of(GreetingActor)
greeter.tell("world")
system.terminate()
Documentation
-------------
Documentation is available at http://pythonhosted.org/actors/.
نحوه نصب
نصب پکیج whl actors-0.5.1b1:
pip install actors-0.5.1b1.whl
نصب پکیج tar.gz actors-0.5.1b1:
pip install actors-0.5.1b1.tar.gz