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

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

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.2.tar.gz (85.8 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.2-py3-none-any.whl (98.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for teleprox-2.2.2.tar.gz
Algorithm Hash digest
SHA256 558d6665f5a446878266d28c65b092bc0d5fce0b62fe03b2ba40ea428ab70e6f
MD5 d8510a00a95f08693268b2b138108f68
BLAKE2b-256 a835fdc7c11bb3a0128fd154a4e0d954433995505e9d96012b258abf1fc8f373

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for teleprox-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff56d40a57e01c1d8427be99d3eacb74b4268d006e0df3dc3d2c875df91d48a1
MD5 7421ab905d0fcf62b65cc858376280a4
BLAKE2b-256 a025da356c5b14ac926e6315dc41409169efa09e4483d02aa061b579cb2eff24

See more details on using hashes here.

Provenance

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