Skip to main content

Pure Python actor system for building concurrent and distributed applications with async/await support for Python 3.11+

Project description

Actio Project

Pure Python actor system for building concurrent and distributed applications with async/await support.

Features

Async/await native - Built on Python 3.11+ asyncio

Hierarchical actors - Parent-child relationships with supervision

Message routing - Path-based message delivery between actors

Lifecycle management - Started/receive/stopped hooks with error handling

Type safe - Full type annotations with Pylance/MyPy support

Quick Start

import asyncio
from actio import Actor, ActorSystem, actio

@actio()
class MyActor(Actor):
    async def receive(self, sender, message):
        print(f"Received: {message}")

async def main():
    system = ActorSystem()
    actor_ref = system.create(MyActor())
    
    system.tell(actor_ref, "Hello World!")
    await asyncio.sleep(0.1)
    system.shutdown()

asyncio.run(main())

License

MIT License - see LICENSE file for details.

Project details


Download files

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

Source Distribution

actio-0.1.2.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

actio-0.1.2-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file actio-0.1.2.tar.gz.

File metadata

  • Download URL: actio-0.1.2.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for actio-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e88ec6f9436613d74a44f98d38b81d5b10f2dcc28804d6404247c3292ebd2bc9
MD5 6ef0225c1d6301cb5021bf4e211b3721
BLAKE2b-256 a99993d26e7d66c285a5a274a8d662e20e7cd056863af931306e1c3c57b44997

See more details on using hashes here.

File details

Details for the file actio-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: actio-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for actio-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e62cd5295351914805aab8e1479618b10c607bf172874975bd4b043fc82b6bf9
MD5 bccedd65634999b5bf5d1b9bced27f76
BLAKE2b-256 89990231556c6a46ab920ad488e774caced2b16795cb0b815c513afe88e6cde6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page