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.1.tar.gz (84.4 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.1-py3-none-any.whl (96.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: teleprox-2.2.1.tar.gz
  • Upload date:
  • Size: 84.4 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.1.tar.gz
Algorithm Hash digest
SHA256 2078a92a270a1bf70ca3fe94a6a8c5a750aa35092f789f79451b9636a7bc2190
MD5 49a6f17331a95740379b4ea544f9c5f7
BLAKE2b-256 26b92081e5e60638fcadce0b3815389e03fbd579c963d55ea77cb34869eaa537

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: teleprox-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 96.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d996f08fc86d2c4b91cd1cbef6f3223f04e7023e73821311f37bdfbe31c945de
MD5 22eb51bd8a251657919ef04f95fda0b2
BLAKE2b-256 bd136243bbb55346b5f5c375b69aee39b3274a0d7f265a4d324e228404555162

See more details on using hashes here.

Provenance

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