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

Uploaded Source

Built Distribution

pydrawise-2024.6.2-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pydrawise-2024.6.2.tar.gz
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for pydrawise-2024.6.2.tar.gz
Algorithm Hash digest
SHA256 a3f5ddd922bd9c6afb4fbeff56291da9be417ea1dd5da95b3c59301e652a84a4
MD5 15430df428b2c7f96392a563a44235cc
BLAKE2b-256 22cc57808992036acdc04f9e29623e22c5f2090ab7f978d86ad1fb994125f34f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydrawise-2024.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f768f7e2f86dbdacb9ac82fd5c7a88cacc3623599041b42380e53a572810b996
MD5 5450c564ff9c06fc7525546c297feb2e
BLAKE2b-256 b26e49c587b2cfff62fb1ea7073a8d81dc521f50042b6fdad2aed405d9896450

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