compas.rpc
COMPAS runs in many different environments, but in some environments the availablity of libraries is limited.
For example, when running COMPAS in an IronPython-based environment like Rhino/Grasshopper,
plenty of CPython libraries such as numpy and scipy are not available.
To workaround this limitation, COMPAS provides a mechanisms to access the functionality of a CPython environment seemlessly from any other Python environment through a “Remote Procedure Call” or RPC.
Through RPC, COMPAS can be used as a server for remote clients, and as a client for remote servers.
A typical use case is to run algorithms that require packages like numpy
or scipy
on a remote server, when working in Rhino.
Or to use COMPAS in a browser application.
Classes
Base class for remote services. |
|
Create a proxy object as intermediary between client code and remote functionality. |
|
Exception for errors originating from the client. |
|
Exception for errors originating from the server. |
|
Version of a SimpleXMLRPCServer that can be cleanly terminated from the client side. |