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.3.tar.gz (26.6 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.3-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: actio-0.1.3.tar.gz
  • Upload date:
  • Size: 26.6 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.3.tar.gz
Algorithm Hash digest
SHA256 d97921a41bb1caa1f1be96fbd2c629bf2b61012eb7da77dbbfb7a76e4f8b67b1
MD5 c99ecbfda9f66e79d1a58e4e62c04b74
BLAKE2b-256 7fe88b4cc9daf185cff07f7a5f4fb526b9a99fc1132c6d9e798ec3c0a84ede5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: actio-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 30.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e3b2b0178f909a5d2b7aa703e974bdf33bab82d76fda5a1e4f141c3fa194442e
MD5 5f8378b75629a9bf6d156ba408a0f370
BLAKE2b-256 9da34df144d2e3ca0203051f1611962d9b51db18ceefc8e453bfae61c27da519

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