Skip to main content

import proxying for rpyc

Project description

rpyc import bridge

import modules over rpyc.

this is a terrible hack and nobody should use it.

example

bridge = RPyCImportBridge(rpyc_connection)
bridge.register_remote_module('numpy')
bridge.register_remote_module('mymodule')
bridge.install_import_hooks()

# imports now work naturally
from numpy import array
from mymodule.things import Function

testing

uv run python ./test/server/test_server.py
uv run python ./test/client/test_suite.py

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

rpyc_import_bridge-0.1.1.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

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

rpyc_import_bridge-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file rpyc_import_bridge-0.1.1.tar.gz.

File metadata

  • Download URL: rpyc_import_bridge-0.1.1.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for rpyc_import_bridge-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fd77270f5ac62051f84de5b1bc2eed99731ef11031734cbe5f7bd04e96696019
MD5 1fa2c9cdb9653f636e6ffee4bae15f8b
BLAKE2b-256 f9b12285f28fda3a12cdd12481e329ec75490e35614f1bee79e936747c172055

See more details on using hashes here.

File details

Details for the file rpyc_import_bridge-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rpyc_import_bridge-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for rpyc_import_bridge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 308a5ed826868749698f2283bdf7d28a8f2b4a446a39179aa7f6f8674a8149f1
MD5 a686771c3a19d375c83f4c2bbfe95d0c
BLAKE2b-256 4bca4a0f9b42c837a79f8f6b2023c51e6288aa95ed80cfa2b9f2beb246b12a05

See more details on using hashes here.

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