Skip to main content

Python API for interacting with Hydrawise sprinkler controllers.

Project description

Pydrawise

Build and Test pypi version docs

Pydrawise is an asynchronous Python 3 library for interacting with Hydrawise sprinkler controllers.

Note that this project has no official relationship with Hydrawise or Hunter. Use at your own risk.

Usage

import asyncio

from pydrawise import Auth, Hydrawise


async def main():
    # Create a Hydrawise object and authenticate with your credentials.
    h = Hydrawise(Auth("username", "password"))

    # List the controllers attached to your account.
    controllers = await h.get_controllers()

    # List the zones controlled by the first controller.
    zones = await h.get_zones(controllers[0])

    # Start the first zone.
    await h.start_zone(zones[0])


if __name__ == "__main__":
    asyncio.run(main())

Installation

Pip

To install pydrawse, run this command in your terminal:

$ pip install pydrawise

Source code

Pydrawise is actively developed on Github, where the code is always available.

You can either clone the public repository:

$ git clone https://github.com/dknowles2/pydrawise

Or download the latest tarball:

$ curl -OL https://github.com/dknowles2/pydrawise/tarball/main

Once you have a copy of the source, you can embed it in your own Python package, or install it into your site-packages easily:

$ cd pydrawise
$ python -m pip install .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydrawise-2023.9.1.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

pydrawise-2023.9.1-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file pydrawise-2023.9.1.tar.gz.

File metadata

  • Download URL: pydrawise-2023.9.1.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pydrawise-2023.9.1.tar.gz
Algorithm Hash digest
SHA256 2b775a1170b07baebd9e53d60f325e1cd92f61c6474974937ed335693500a451
MD5 bfb7008747b37da8d68ae28ef263852b
BLAKE2b-256 f039bd05a99c975578ea004314b015462157dab26f2ed9ea808c672de9801b90

See more details on using hashes here.

File details

Details for the file pydrawise-2023.9.1-py3-none-any.whl.

File metadata

  • Download URL: pydrawise-2023.9.1-py3-none-any.whl
  • Upload date:
  • Size: 19.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pydrawise-2023.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7a713d3b2c179629a9295574841814ff75798b42df32afbafcf83fbe3ad6a5b
MD5 3402e493bfc566459d5fdcb382bbcc59
BLAKE2b-256 d012119dd1e6471a51b65a98826af4c222b56f3fbf8628de10d9ab06a6780138

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page