RPyC is a Python library for symmetrical remote procedure calls and distributed computing. Remote objects can be used as if they were local through object proxying.
Overview
RPyC, or Remote Python Call, is a transparent Python library for symmetrical remote procedure calls, clustering, and distributed computing. It uses object proxying so remote objects can be manipulated as if they were local, spanning processes and machines.
The protocol is symmetric: client and server can both serve requests, which enables callbacks from the server to the client. Operation can be synchronous or asynchronous. A compact binary protocol keeps overhead low, and setup avoids name servers, HTTP, and URL mapping.
Security follows a capability-based model and can integrate with SSH. The stack supports TLS/SSL, SSH, and inetd, and offers zero-deploy options. It is meant to work across 32- and 64-bit, endian variants, and Windows, Linux, Solaris, and Mac targets.
Typical uses include centralized testing against remote runners, administering heterogeneous Python hosts from one machine, reaching remote hardware through drivers on another OS, monkey-patching modules such as socket or os for cross-network behavior, spreading workload across machines, and implementing remote services with less ceremony than WSDL or RMI. Install with pip install rpyc.
Key features
- Transparent local-like access to remote objects
- Symmetric client and server request handling
- Synchronous and asynchronous operation
- Cross-architecture and cross-platform access
- Compact binary protocol with simple setup
- Capability-based security model
- TLS, SSL, SSH, and inetd integration
- Zero-deploy deployment option
Use cases
- Centralized testing on remote machines
- Administering multiple Python-capable platforms
- Remote hardware and driver access
- Network-spanning module monkey-patching
- Distributing workload across machines