| 1 |
""" |
| 2 |
Single module that centralizes the main symbols from the Pyro5 API. |
| 3 |
It imports most of the other packages that it needs |
| 4 |
and provides shortcuts to the most frequently used objects and functions from those packages. |
| 5 |
This means you can mostly just ``import Pyro5.api`` in your code to have access to most of |
| 6 |
the Pyro5 objects and functions. |
| 7 |
|
| 8 |
Pyro - Python Remote Objects. Copyright by Irmen de Jong ([email protected]). |
| 9 |
""" |
| 10 |
|
| 11 |
from . import __version__ |
| 12 |
from .configure import global_config as config |
| 13 |
from .core import URI, locate_ns, resolve, type_meta |
| 14 |
from .client import Proxy, BatchProxy, SerializedBlob |
| 15 |
from .server import Daemon, DaemonObject, callback, expose, behavior, oneway, serve |
| 16 |
from .nameserver import start_ns, start_ns_loop |
| 17 |
from .serializers import SerializerBase |
| 18 |
from .callcontext import current_context |
| 19 |
|
| 20 |
register_dict_to_class = SerializerBase.register_dict_to_class |
| 21 |
register_class_to_dict = SerializerBase.register_class_to_dict |
| 22 |
unregister_dict_to_class = SerializerBase.unregister_dict_to_class |
| 23 |
unregister_class_to_dict = SerializerBase.unregister_class_to_dict |
| 24 |
|
| 25 |
|
| 26 |
__all__ = ["config", "URI", "locate_ns", "resolve", "type_meta", "current_context", |
| 27 |
"Proxy", "BatchProxy", "SerializedBlob", "SerializerBase", |
| 28 |
"Daemon", "DaemonObject", "callback", "expose", "behavior", "oneway", |
| 29 |
"start_ns", "start_ns_loop", "serve", "register_dict_to_class", |
| 30 |
"register_class_to_dict", "unregister_dict_to_class", "unregister_class_to_dict"] |