Skip to main content

Object proxies over TCP

Project description

Teleprox: simple python object proxies over TCP

Tests PyPI version

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


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.2.0.tar.gz (81.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teleprox-2.2.0-py3-none-any.whl (93.7 kB view details)

Uploaded Python 3

File details

Details for the file teleprox-2.2.0.tar.gz.

File metadata

  • Download URL: teleprox-2.2.0.tar.gz
  • Upload date:
  • Size: 81.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for teleprox-2.2.0.tar.gz
Algorithm Hash digest
SHA256 9b768469eaefdbe907aed97c5b7d4ba1de521335a9da03cb76f106965e304a28
MD5 6c0412011d6321ebb006a7b6073240de
BLAKE2b-256 2a2d001b658ba225fc772e5c4d643fc5f6f2f830a352165ae29fe813d3c9840a

See more details on using hashes here.

Provenance

The following attestation bundles were made for teleprox-2.2.0.tar.gz:

Publisher: deploy.yml on campagnola/teleprox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file teleprox-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: teleprox-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 93.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for teleprox-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cf0a1a042fd3270808ddef078e7655bc2cf7505f327d49c69799f70c3d01f29
MD5 a0569e27d83dbf12796413522e7169da
BLAKE2b-256 45195e1b4f9d6d501c8e4635022621a3eb83d79e8ef72f59a2b06075048ef087

See more details on using hashes here.

Provenance

The following attestation bundles were made for teleprox-2.2.0-py3-none-any.whl:

Publisher: deploy.yml on campagnola/teleprox

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page