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

Uploaded Source

Built Distribution

pydrawise-2023.12.0-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pydrawise-2023.12.0.tar.gz
Algorithm Hash digest
SHA256 efc7057cea7a7d57127c57138e7aeef4405c285210384ffdf0ace1fbc9841869
MD5 7a5ae1c4597ac6217ffa824db39f44b6
BLAKE2b-256 f3187e2b9a0206b81038b20b6f56292b820ffd1b525a23d35b5c5eeff09cb4ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydrawise-2023.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e423bf758f071c5596194099b193866cc1f8034da3f33dd223e0537fb0bfd72
MD5 4c0570875e5e5b04cc278b4b44ffaa49
BLAKE2b-256 a0a893f59026482c33bec18439bfdd3860b21486467a8576c8f8ca791b8983da

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