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-2024.9.0.tar.gz (45.0 kB view details)

Uploaded Source

Built Distribution

pydrawise-2024.9.0-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydrawise-2024.9.0.tar.gz
  • Upload date:
  • Size: 45.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for pydrawise-2024.9.0.tar.gz
Algorithm Hash digest
SHA256 afbe90858c6bba5e36ae9be285ffa01e0976b6fd31421907ee46e75601d6c6ed
MD5 9721ddfea9a2856d81b50d346f636a80
BLAKE2b-256 fcb78714ba2b00355a38513b49969ec23d02349d1bd99674533e35681d08c869

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pydrawise-2024.9.0-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for pydrawise-2024.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 167e7bb8b063b9d4863f21a97d0575a6e6daa8caa3b664e7d4e48f9c7346af8d
MD5 e841201caef85d3c8c1002d8005987aa
BLAKE2b-256 39b6fb86cad6a144297e05b7149773c3101bcc10f795de742d497fad2ec9e812

See more details on using hashes here.

Provenance

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