rpyc import bridge
import modules over rpyc.
this is a terrible hack and nobody should use it.
client
from rpyc_import_bridge import ImportBridge
bridge = ImportBridge(rpyc_connection)
# imports now work naturally
from numpy import array
from mymodule.things import Function
by default, the bridge only intercepts modules that are missing locally. pass module names to force remote even if a local copy exists:
bridge = ImportBridge(rpyc_connection, "mypackage1", "mypackage2")
server
class Service(rpyc.Service):
def exposed_import_module(self, module_name):
import importlib
return importlib.import_module(module_name)
testing
uv run python ./test/server/test_server.py
uv run python ./test/client/test_suite.py
Metadata
Release files for rpyc-import-bridge 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rpyc_import_bridge-0.2.0.tar.gz | 26.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rpyc_import_bridge-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.2 kB
Release files / rpyc_import_bridge-0.2.0.tar.gz
| Download URL | rpyc_import_bridge-0.2.0.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1aa3241aa068f61339b17251146d91e2625e25f4823ed0bcbbdff8c265365ce
|
|
BLAKE2b-256 checksum How to use checksums |
f8063fd47e24b37bfc62064a2d83c659fb388bed707f29ce970d6bb8b8a815ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.1 Darwin/24.6.0
|
Release files / rpyc_import_bridge-0.2.0-py3-none-any.whl
| Download URL | rpyc_import_bridge-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2d325d9e2ea78a69ff26d871ebecf34e1c8812cb3335577451fc1475f66c693
|
|
BLAKE2b-256 checksum How to use checksums |
882f56b7cb9debeb02773d1c3b5df304788ccc7aaa4c7708767ca718b6a2ca32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.1 Darwin/24.6.0
|
Security for rpyc-import-bridge 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.