Current collected state Current
Observed since 21 Oct, 11:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Simple library for building actors in asyncio.
A simple library for building actors in asyncio.
pip install aio-actors
from aio_actors import Actor
class MyActor(Actor[str]):
async def handle_message(self, message: str) -> None:
print(f"{self.__class__.__name__}: message:{message}")
class MySecondActor(Actor[str]):
def __init__(self, first_actor: MyActor) -> None:
super().__init__()
self._first_actor = first_actor
async def handle_message(self, message: str) -> None:
print(f"{self.__class__.__name__}: message:{message}")
await self._first_actor.send_message(message + " from second actor")
async def main():
actor = MyActor()
await actor.start()
second_actor = MySecondActor(actor)
await second_actor.start()
for i in range(10):
await second_actor.send_message(f"aio-actors is awesome - {i}")
await asyncio.sleep(1)
await actor.shutdown()
await second_actor.shutdown()
if __name__ == "__main__":
asyncio.run(main())
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.4 | 22 Apr 2025 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:fe59eabc38d3c7e43f865f07fbf86cd5b8c8e3e51aa1e8fc1830f44e890bfc30