Metadata-Version: 2.1
Name: pydrawise
Version: 2023.1.2
Summary: Python API for interacting with Hydrawise sprinkler controllers.
Home-page: https://github.com/dknowles2/pydrawise
Download-URL: https://github.com/dknowles2/pydrawise/tarball/2023.1.2
Author: David Knowles
Author-email: dknowles2@gmail.com
License: Apache License 2.0
Keywords: hydrawise,api,iot
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# pydrawise
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

```python
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 controllers[0].get_zones()
    
    # Start the first zone.
    await zones[0].start()


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