Skip to main content

Chorus - A simple actor library for Python

Chorus is a Python package that provides a version of the Actor model of concurrency. It is built ontop of Python's built-in threading package and each Actor has its own thread. Actors can send and recieve messges from other actors as well as spawn new Actors.

The package has three layers:

  • chorus.runtime a minimal API for managing Python threads using the Actor model, roughly based on Erlangs API.
  • chorus.messaging provides message base classes and request/reply exchanges with tell and ask.
  • chorus.dispatch provides an object-oriented API for sending and receiving messages between actors.

There APIs can be imported directly from the chorus top-level package.

Installation

Chorus requires Python 3.12 or later. The distribution is named chorus-actors; the Python import remains chorus. To add it to a project using uv:

uv add chorus-actors

Or install it with pip:

python -m pip install chorus-actors

Documentation

The documentation can be found here.

Examples:

The examples are grouped by layer:

  • runtime: actors, raw messages, main-thread execution, and drawing.
  • messaging: message subclasses and request/reply exchanges.
  • dispatch: counters, proxies, and GUI event-loop integration.

To run an example from the repository root:

uv run examples/dispatch/proxy_counter.py

License

This project is licensed under the MIT licence.

Metadata

Release files for chorus-actors 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chorus-actors 0.1.1
File Size Uploaded Provenance Actions
chorus_actors-0.1.1.tar.gz 8.9 kB Without provenance Details for chorus_actors-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chorus-actors 0.1.1
File Interpreter ABI Platform Actions
chorus_actors-0.1.1-py3-none-any.whl Python 3 none any Details for chorus_actors-0.1.1-py3-none-any.whl

Total release size: 21.4 kB

Release files / chorus_actors-0.1.1.tar.gz

Download URL chorus_actors-0.1.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
48951bdf364b6771abc94ed9dca86731cdfdc89dbff1b69f667363f7e8b39d65
BLAKE2b-256 checksum
How to use checksums
33bd895cf89adb59d1633874586d7d654aa2f7874302c8129aa1cb8d7f87f6b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / chorus_actors-0.1.1-py3-none-any.whl

Download URL chorus_actors-0.1.1-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa97549c39c621d6bf593f8e078c0c4c6f895ab4dddcf35d948bf0a0a50603bb
BLAKE2b-256 checksum
How to use checksums
915fcaa0ac040ee014e33eca6c80eacef1e8b630b85806af4eeeca8707a24904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for chorus-actors 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page