MetaTrader5-Docker-Image/config.old-32bit/.local/lib/python3.11/site-packages/rpyc/__init__.py

46 lines
1.8 KiB
Python
Raw Permalink Normal View History

2026-11-06 00:29:29 +00:00
"""Remote Python Call (RPyC) is a transparent and symmetric distributed computing library
Licensed under the MIT license (see `LICENSE` file)
Usage::
>>> import rpyc
>>> c = rpyc.connect_by_service("SERVICENAME")
>>> print(c.root.some_function(1, 2, 3))
Classic-style usage::
>>> import rpyc
>>> # `hostname` is assumed to be running a slave-service server
>>> c = rpyc.classic.connect("hostname")
>>> print(c.execute("x = 5"))
None
>>> print(c.eval("x + 2"))
7
>>> print(c.modules.os.listdir(".")) # doctest: +ELLIPSIS
[...]
>>> print(c.modules["xml.dom.minidom"].parseString("<a/>")) # doctest: +ELLIPSIS
<xml.dom.minidom.Document instance at ...>
>>> f = c.builtin.open("foobar.txt", "rb") # doctest: +SKIP
>>> print(f.read(100)) # doctest: +SKIP
...
"""
# flake8: noqa: F401
from rpyc.core import (SocketStream, TunneledSocketStream, PipeStream, Channel,
Connection, Service, BaseNetref, AsyncResult, GenericException,
AsyncResultTimeout, VoidService, SlaveService, MasterService, ClassicService)
from rpyc.utils.factory import (connect_stream, connect_channel, connect_pipes,
connect_stdpipes, connect, ssl_connect, list_services, discover, connect_by_service, connect_subproc,
connect_thread, ssh_connect)
from rpyc.utils.helpers import async_, timed, buffiter, BgServingThread, restricted
from rpyc.utils import classic, exposed, service
from rpyc.version import __version__
from rpyc.lib import setup_logger, spawn
from rpyc.utils.server import OneShotServer, ThreadedServer, ThreadPoolServer, ForkingServer
from rpyc import cli
__author__ = "Tomer Filiba (tomerfiliba@gmail.com)"
globals()['async'] = async_ # backward compatibility