Object proxies over TCP
Project description
Teleprox: simple python object proxies over TCP
No declarations required; just access remote objects as if they are local.
Requires
- python 3
- pyzmq
- msgpack
- numpy (optional; required only for SharedNDArray)
Examples
from teleprox import start_process
import time
# start a new process
proc = start_process()
# import os in the remote process
remote_os = proc.client._import('os')
# call os.getpid() in the remote process
pid = remote_os.getpid()
# or, call getpid asynchronously and wait for the result:
request = remote_os.getpid(_sync='async')
while not request.hasResult():
time.sleep(0.01)
pid = request.result()
# write to sys.stdout in the remote process, and ignore the return value
remote_sys = proc.client._import('sys')
remote_sys.stdout.write('hello', _sync='off')
proc.stop()
Teleprox was originally developed as pyacq.core.rpc by the French National Center for Scientific Research (CNRS).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
teleprox-2.1.2.tar.gz
(105.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
teleprox-2.1.2-py3-none-any.whl
(130.4 kB
view details)
File details
Details for the file teleprox-2.1.2.tar.gz.
File metadata
- Download URL: teleprox-2.1.2.tar.gz
- Upload date:
- Size: 105.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01ef877b94172de3b84530c0c5892342404adf5b1be64da5a7b5b4c0f48fc3b4
|
|
| MD5 |
8867f8d0fe7a8f8faf3d93bd3663bd14
|
|
| BLAKE2b-256 |
8c78bdbbfb9c89ced26a6d2bd375db293129c4047ef1ed168a66314f92a0539c
|
File details
Details for the file teleprox-2.1.2-py3-none-any.whl.
File metadata
- Download URL: teleprox-2.1.2-py3-none-any.whl
- Upload date:
- Size: 130.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4771290b3ec043018449f424a0d038f99b2a73f9794fafb1c996a8b4c79d5bc7
|
|
| MD5 |
75cf6b8bdd43abe9398b1c91853be3f1
|
|
| BLAKE2b-256 |
816fb5ad1c11f86659b823f58934d823836b656143861e77774382f0bee6a48b
|