Skip to main content

Watergate Local API Python SDK

The Watergate Local API Python SDK provides a seamless way to interact with the Watergate Local API directly from your Python applications. Designed for developers, this SDK simplifies integration and accelerates development by offering a clean and intuitive interface.

Features

  • Easy Integration: Quickly connect to the Watergate Local API.
  • Comprehensive Documentation: Clear and concise examples to get you started.
  • Actively Maintained: Regular updates and improvements.

Installation

Install the SDK using pip:

pip install watergate-local-api

Basic usage

from watergate_local_api import WatergateLocalApiClient

async def main():
async with WatergateLocalApiClient(base_url="http://testserver") as client:
# Get device state
device_state = await client.async_get_device_state()
print("Valve State:", device_state.valve_state)

# Access telemetry data
telemetry_data = await client.async_get_telemetry_data()
print("Flow Rate:", telemetry_data.flow)

Learn More

For detailed usage instructions, examples, and contribution guidelines, visit our GitHub repository.

Check out the full README here for more information.