Python SDK offers a simple and convenient way of integrating a user's workflow scripts with Hydrosphere API.
You can learn more about it in its documentation here.
You can use pip to install
pip install hydrosdk
You can access the locally deployed Hydrosphere platform from previous steps by running the following code:
from hydrosdk import Cluster, Applicationimport pandas as pdcluster = Cluster("http://localhost", grpc_address="localhost:9090")app = Application.find(cluster, "my-model")predictor = app.predictor()df = pd.read_csv("path/to/data.csv")for row in df.itertuples(index=False):predictor.predict(row)