Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 946 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 946 Bytes

Pickle RPC plugin for Deephaven server

This is an example server-side plugin for Deephaven, providing both a Python class to invoke commands, and an ObjectType plugin to enable clients to call it with pickled arguments.

To install directly to the current venv, invoke pip install . from within this directory.

To build the wheel, invoke python -m build. Then install the wheel created in dist/ to the venv that will be used by the server.

Once the server is running, the server should have an instance of dhexample.rpc_pickle_server.RemoteShell created and bound in the global scope so that clients can reference it by name. Construct the instance with a scope= assigned to a Python dictionary that has function definitions in it to allow access to from the server.

from dhexample.rpc_pickle_server import RemoteShell
shell = RemoteShell(scope=globals())

def make_string(a, b, c):
    return f"{a} - {b} - {c} #"