Skip to main content

Lightweight actor framework with supervision

Project description

A python actor framework.

https://img.shields.io/pypi/v/actors.svg

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for actors, version 0.5.0b1
Filename, size File type Python version Upload date Hashes
Filename, size actors-0.5.0b1.tar.gz (19.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page