Skip to main content

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()

Local CI

To run GitHub Actions workflows locally with act, first build the runner image once:

docker build -t teleprox-act-runner -f .github/act-ubuntu.dockerfile .github/

Then run act as normal; .actrc maps ubuntu-latest to this image.

Acknowledgements

Teleprox was originally developed as pyacq.core.rpc by the French National Center for Scientific Research (CNRS).

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.3.0.tar.gz (86.3 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.3.0-py3-none-any.whl (98.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: teleprox-2.3.0.tar.gz
  • Upload date:
  • Size: 86.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for teleprox-2.3.0.tar.gz
Algorithm Hash digest
SHA256 c015101d3bc04ec630c5bbb4645a8d195eb3e3a58725fae0822c1b69460fd95e
MD5 55ba1ca6054a7c9ce1beff98d9a3f46b
BLAKE2b-256 31c67f7ecd038266fb83f472547d70b10fb644b9fbbbf8236c05eee0c00dab92

See more details on using hashes here.

Provenance

The following attestation bundles were made for teleprox-2.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: teleprox-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 98.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for teleprox-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c215bdfb9f34c3f415ec08f66792c9a9b0456532798acf41da96bfa8580763f5
MD5 3664f817dd447fb1503b3adf0e838984
BLAKE2b-256 1689a350e246e437a7e3db0b4e4966f4ef0acd18948b041d83684651647044eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for teleprox-2.3.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.

Release history Release notifications | RSS feed

2.3.1

2 files

This release

2.3.0 This release

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.3

2 files

2.1.2

2 files

2.1.1

2 files

2.1.0

2 files

2.0.0

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

1 file

1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page