JSON-RPC Client¶
A simple JSON-RPC client using requests for the http connection.
The RPC protocol is built on http(s), with the body containing a json-encoded dictionary:
Request Object:
- method (string) - Name of the method to be invoked.
- params (dict) - Keyword arguments to the method.
Response Object:
- result (object) - The returned result from the method. This is REQUIRED on success, and MUST NOT exist if there was an error.
- error (object) - A description of the error, likely an Exception object. This is REQUIRED on error and MUST NOT exist on success.
-
class
iceprod.core.jsonRPCclient.Client(timeout=60.0, address=None, backoff=True, **kwargs)[source]¶ Raw JSONRPC client object