2018-06-07 04:26:49 +00:00
|
|
|
"""
|
2018-07-10 19:06:42 +00:00
|
|
|
tractor: An actor model micro-framework built on
|
|
|
|
``trio`` and ``multiprocessing``.
|
2018-06-07 04:26:49 +00:00
|
|
|
"""
|
2018-11-19 19:15:28 +00:00
|
|
|
from trio import MultiError
|
2018-06-07 04:26:49 +00:00
|
|
|
|
2020-12-27 15:55:00 +00:00
|
|
|
from ._ipc import Channel
|
2021-05-12 03:41:26 +00:00
|
|
|
from ._streaming import (
|
|
|
|
Context,
|
|
|
|
ReceiveMsgStream,
|
|
|
|
MsgStream,
|
|
|
|
stream,
|
|
|
|
context,
|
|
|
|
)
|
2019-03-24 15:37:11 +00:00
|
|
|
from ._discovery import get_arbiter, find_actor, wait_for_actor
|
2018-07-14 20:09:05 +00:00
|
|
|
from ._trionics import open_nursery
|
2020-12-21 14:09:55 +00:00
|
|
|
from ._state import current_actor, is_root_process
|
2019-01-01 20:58:38 +00:00
|
|
|
from ._exceptions import RemoteActorError, ModuleNotExposed
|
2020-07-23 17:32:29 +00:00
|
|
|
from ._debug import breakpoint, post_mortem
|
2020-10-16 02:47:11 +00:00
|
|
|
from . import msg
|
2020-12-27 15:55:00 +00:00
|
|
|
from ._root import run, run_daemon, open_root_actor
|
2018-07-14 20:09:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
__all__ = [
|
2020-12-27 15:55:00 +00:00
|
|
|
'Channel',
|
|
|
|
'Context',
|
|
|
|
'ModuleNotExposed',
|
|
|
|
'MultiError',
|
|
|
|
'RemoteActorError',
|
2020-10-13 15:03:55 +00:00
|
|
|
'breakpoint',
|
2018-08-13 03:59:19 +00:00
|
|
|
'current_actor',
|
|
|
|
'find_actor',
|
|
|
|
'get_arbiter',
|
2020-12-27 15:55:00 +00:00
|
|
|
'is_root_process',
|
|
|
|
'msg',
|
2018-08-13 03:59:19 +00:00
|
|
|
'open_nursery',
|
2020-12-27 15:55:00 +00:00
|
|
|
'open_root_actor',
|
|
|
|
'post_mortem',
|
|
|
|
'run',
|
|
|
|
'run_daemon',
|
2019-03-26 01:36:13 +00:00
|
|
|
'stream',
|
2021-05-02 18:12:35 +00:00
|
|
|
'context',
|
2020-12-27 15:55:00 +00:00
|
|
|
'to_asyncio',
|
|
|
|
'wait_for_actor',
|
2018-07-14 20:09:05 +00:00
|
|
|
]
|