forked from goodboy/tractor
1
0
Fork 0
tractor/tractor/__init__.py

46 lines
965 B
Python
Raw Normal View History

"""
tractor: An actor model micro-framework built on
``trio`` and ``multiprocessing``.
"""
2018-11-19 19:15:28 +00:00
from trio import MultiError
from ._ipc import Channel
2021-05-12 03:41:26 +00:00
from ._streaming import (
Context,
ReceiveMsgStream,
MsgStream,
stream,
context,
)
from ._discovery import get_arbiter, find_actor, wait_for_actor
2018-07-14 20:09:05 +00:00
from ._trionics import open_nursery
from ._state import current_actor, is_root_process
from ._exceptions import RemoteActorError, ModuleNotExposed
from ._debug import breakpoint, post_mortem
2020-10-16 02:47:11 +00:00
from . import msg
from ._root import run, run_daemon, open_root_actor
2018-07-14 20:09:05 +00:00
__all__ = [
'Channel',
'Context',
'ModuleNotExposed',
'MultiError',
'RemoteActorError',
2020-10-13 15:03:55 +00:00
'breakpoint',
'current_actor',
'find_actor',
'get_arbiter',
'is_root_process',
'msg',
'open_nursery',
'open_root_actor',
'post_mortem',
'run',
'run_daemon',
'stream',
'context',
'to_asyncio',
'wait_for_actor',
2018-07-14 20:09:05 +00:00
]