# Pydrawise
[](https://github.com/dknowles2/pydrawise/actions/workflows/build-and-test.yml)
[](https://pypi.python.org/pypi/pydrawise)
[](https://pydrawise.readthedocs.io/en/latest/?badge=latest)
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
```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())
```
## Installation
### Pip
To install pydrawse, run this command in your terminal:
```sh
$ pip install pydrawise
```
### Source code
Pydrawise is actively developed on Github, where the code is [always available](https://github.com/dknowles2/pydrawise).
You can either clone the public repository:
```sh
$ git clone https://github.com/dknowles2/pydrawise
```
Or download the latest [tarball](https://github.com/dknowles2/pydrawise/tarball/main):
```sh
$ 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:
```sh
$ cd pydrawise
$ python -m pip install .
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pydrawise",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "hydrawise, api, iot",
"author": null,
"author_email": "David Knowles <dknowles2@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/bd/e1/c8b5091f53c5d9a171f5830548c9130a638cea1afa6bbb3b157ff88b1703/pydrawise-2025.3.0.tar.gz",
"platform": "any",
"description": "# Pydrawise\n\n[](https://github.com/dknowles2/pydrawise/actions/workflows/build-and-test.yml)\n[](https://pypi.python.org/pypi/pydrawise)\n[](https://pydrawise.readthedocs.io/en/latest/?badge=latest)\n\nPydrawise is an asynchronous Python 3 library for interacting with Hydrawise sprinkler controllers.\n\n*Note that this project has no official relationship with Hydrawise or Hunter. Use at your own risk.*\n\n## Usage\n\n```python\nimport asyncio\n\nfrom pydrawise import Auth, Hydrawise\n\n\nasync def main():\n # Create a Hydrawise object and authenticate with your credentials.\n h = Hydrawise(Auth(\"username\", \"password\"))\n\n # List the controllers attached to your account.\n controllers = await h.get_controllers()\n\n # List the zones controlled by the first controller.\n zones = await h.get_zones(controllers[0])\n\n # Start the first zone.\n await h.start_zone(zones[0])\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n```\n\n## Installation\n\n### Pip\n\nTo install pydrawse, run this command in your terminal:\n\n```sh\n$ pip install pydrawise\n```\n\n### Source code\n\nPydrawise is actively developed on Github, where the code is [always available](https://github.com/dknowles2/pydrawise).\n\nYou can either clone the public repository:\n\n```sh\n$ git clone https://github.com/dknowles2/pydrawise\n```\n\nOr download the latest [tarball](https://github.com/dknowles2/pydrawise/tarball/main):\n\n```sh\n$ curl -OL https://github.com/dknowles2/pydrawise/tarball/main\n```\n\nOnce you have a copy of the source, you can embed it in your own Python package, or install it into your site-packages easily:\n\n```sh\n$ cd pydrawise\n$ python -m pip install .\n```\n",
"bugtrack_url": null,
"license": "Apache-2.0",
"summary": "Python API for interacting with Hydrawise sprinkler controllers.",
"version": "2025.3.0",
"project_urls": {
"Bug Reports": "https://github.com/dknowles2/pydrawise/issues",
"Homepage": "https://github.com/dknowles2/pydrawise",
"Source Code": "https://github.com/dknowles2/pydrawise"
},
"split_keywords": [
"hydrawise",
" api",
" iot"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "ba91c0270514b81e36d40a457546c1fa4851a74c9becf8fde8f2efdfef0cd0fb",
"md5": "e7891cb2ee1875f036e82d6a0c21140b",
"sha256": "197b6d3f3a9cdaedc0f4ac21e7a749e5f855b39c3345d87b37cc9528a3bee867"
},
"downloads": -1,
"filename": "pydrawise-2025.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e7891cb2ee1875f036e82d6a0c21140b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 38720,
"upload_time": "2025-03-11T00:29:59",
"upload_time_iso_8601": "2025-03-11T00:29:59.812018Z",
"url": "https://files.pythonhosted.org/packages/ba/91/c0270514b81e36d40a457546c1fa4851a74c9becf8fde8f2efdfef0cd0fb/pydrawise-2025.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "bde1c8b5091f53c5d9a171f5830548c9130a638cea1afa6bbb3b157ff88b1703",
"md5": "92104f35dfd0fb1ea0500a64c413d99f",
"sha256": "4393a6aba7edc13209af04108f1a71672d2fed12b8e24d08d836ad70cfc7b390"
},
"downloads": -1,
"filename": "pydrawise-2025.3.0.tar.gz",
"has_sig": false,
"md5_digest": "92104f35dfd0fb1ea0500a64c413d99f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 49462,
"upload_time": "2025-03-11T00:30:01",
"upload_time_iso_8601": "2025-03-11T00:30:01.444187Z",
"url": "https://files.pythonhosted.org/packages/bd/e1/c8b5091f53c5d9a171f5830548c9130a638cea1afa6bbb3b157ff88b1703/pydrawise-2025.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-11 00:30:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dknowles2",
"github_project": "pydrawise",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "aiohttp",
"specs": [
[
"==",
"3.11.13"
]
]
},
{
"name": "apischema",
"specs": [
[
"==",
"0.19.0"
]
]
},
{
"name": "gql",
"specs": [
[
"==",
"3.5.0"
]
]
},
{
"name": "graphql-core",
"specs": [
[
"==",
"3.2.6"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.32.3"
]
]
}
],
"lcname": "pydrawise"
}