Metadata-Version: 2.1
Name: pydrawise
Version: 2023.5.1
Summary: Python API for interacting with Hydrawise sprinkler controllers.
Author-email: David Knowles <dknowles2@gmail.com>
License: Apache License 2.0
Project-URL: Homepage, https://github.com/dknowles2/pydrawise
Project-URL: Source Code, https://github.com/dknowles2/pydrawise
Project-URL: Bug Reports, https://github.com/dknowles2/pydrawise/issues
Keywords: hydrawise,api,iot
Platform: any
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
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 h.get_zones(controllers[0])
    
    # Start the first zone.
    await h.start_zone(zones[0])


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