# Python SDK

Python SDK offers a simple and convenient way of integrating a user's workflow scripts with Hydrosphere API.

Source code: <https://github.com/Hydrospheredata/hydro-serving-sdk>\
PyPI: <https://pypi.org/project/hydrosdk/>

You can learn more about it in its documentation [here](https://hydrospheredata.github.io/hydro-serving-sdk/index.html).

## Installation

You can use pip to install `hydrosdk`

```bash
pip install hydrosdk
```

## Usage

You can access the locally deployed Hydrosphere platform from previous [steps](https://docs.hydrosphere.io/release-2.4.3/quickstart/installation) by running the following code:

```python
from hydrosdk import Cluster, Application 
import pandas as pd

cluster = 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)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hydrosphere.io/release-2.4.3/quickstart/installation/sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
