Hydrosphere.io
GithubPython SDKContact UsSlack Community
2.4.3 Release
2.4.3 Release
  • Hydrosphere
  • 🌊About Hydrosphere
    • Overview
    • Concepts
    • Platform Architecture
      • Serving
      • Monitoring
      • Interpretability
    • Key Features
      • Model Registry
      • Inference Pipelines
      • A/B Model Deployments
      • Traffic Shadowing
      • Language-Agnostic
      • Automatic Outlier Detection
      • Data Drift Report
      • Monitoring Dashboard
      • Alerts
      • Prediction Explanation
      • Data Projection
      • Kubeflow Components
      • AWS Sagemaker
  • 🏄Quickstart
    • Installation
      • CLI
      • Python SDK
    • Getting Started
    • Tutorials
      • A/B Analysis for a Recommendation Model
      • Using Deployment Configurations
      • Train & Deploy Census Income Classification Model
      • Monitoring Anomalies with a Custom Metric
      • Monitoring External Models
    • How-To
      • Invoke applications
      • Write definitions
      • Develop runtimes
      • Use private pip repositories
  • 💧Resources
    • Troubleshooting
    • Reference
      • Runtimes
    • Contribution
      • Contributing Pull Requests
Powered by GitBook
On this page
  • Installation
  • Usage

Was this helpful?

Export as PDF
  1. Quickstart
  2. Installation

Python SDK

PreviousCLINextGetting Started

Last updated 4 years ago

Was this helpful?

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

Source code: PyPI:

You can learn more about it in its documentation .

Installation

You can use pip to install hydrosdk

pip install hydrosdk

Usage

You can access the locally deployed Hydrosphere platform from previous by running the following code:

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)
🏄
https://github.com/Hydrospheredata/hydro-serving-sdk
https://pypi.org/project/hydrosdk/
here
steps