Lightweight actor framework with supervision
Project description
A python actor framework.
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 using pip:
$ pip install actors
Obligatory greeter
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/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
actors-0.5.1b1.tar.gz
(21.3 kB
view details)
File details
Details for the file actors-0.5.1b1.tar.gz
.
File metadata
- Download URL: actors-0.5.1b1.tar.gz
- Upload date:
- Size: 21.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2030cbc2c1c8729bd7c044e44085a2b13e923b633f36855c75d1d335d7125452 |
|
MD5 | b02021d43a7078267433c3bac7a08a79 |
|
BLAKE2b-256 | 43d83db8131a52cf4ee1db46da738fb48484dbdf9132730143af8ed753fc9e76 |