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.3.tar.gz
(106.3 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.3-py3-none-any.whl
(130.8 kB
view details)
File details
Details for the file teleprox-2.1.3.tar.gz.
File metadata
- Download URL: teleprox-2.1.3.tar.gz
- Upload date:
- Size: 106.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5869ac260ea8da89e76c0ca20df3fdeea6946581e108d013fb298e4429716e9
|
|
| MD5 |
dc3e3c63781ef415c0c10764ed86c522
|
|
| BLAKE2b-256 |
336fd8a47d7f87eb7ab5ad10751fe88ea7c60c40a0eedca3625196522a9b4ec7
|
File details
Details for the file teleprox-2.1.3-py3-none-any.whl.
File metadata
- Download URL: teleprox-2.1.3-py3-none-any.whl
- Upload date:
- Size: 130.8 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 |
f3a4b41fd27ff2dcd983a5ef25d7019167e0753adb8c31303d93711d6694997e
|
|
| MD5 |
b78e8a0c0626b62febf5cafb1d15423e
|
|
| BLAKE2b-256 |
9196254ba9eaa0b58478d957880d406ff88e0fd4dd7b426385e0c52242074ca3
|