40 lines
909 B
Python
40 lines
909 B
Python
"""
|
|
tractor: An actor model micro-framework built on
|
|
``trio`` and ``multiprocessing``.
|
|
"""
|
|
from trio import MultiError
|
|
|
|
from ._ipc import Channel
|
|
from ._streaming import Context, stream
|
|
from ._discovery import get_arbiter, find_actor, wait_for_actor
|
|
from ._trionics import open_nursery
|
|
from ._state import current_actor, is_root_process
|
|
from ._exceptions import RemoteActorError, ModuleNotExposed
|
|
from ._debug import breakpoint, post_mortem
|
|
from . import msg
|
|
from ._root import run, run_daemon, open_root_actor
|
|
|
|
|
|
__all__ = [
|
|
'Channel',
|
|
'Context',
|
|
'ModuleNotExposed',
|
|
'MultiError',
|
|
'RemoteActorError',
|
|
'breakpoint',
|
|
'current_actor',
|
|
'find_actor',
|
|
'get_arbiter',
|
|
'is_root_process',
|
|
'msg',
|
|
'open_nursery',
|
|
'open_root_actor',
|
|
'post_mortem',
|
|
'run',
|
|
'run_daemon',
|
|
'stream',
|
|
'wait_for_actor',
|
|
'to_asyncio',
|
|
'wait_for_actor',
|
|
]
|