Package for accessing nodejs-poolController
Project description
poolcontrolpy
Package for accessing nodejs-poolController for use with a planned Home Assistant integration.
Installation
$ pip install poolcontrolpy
Usage
This example uses 'asyncio.run' so it cannot be called when another asyncio event loop is running in the same thread.
import asyncio
import aiohttp
from poolcontrolpy.poolcontrolpy import Controller
async def get():
async with aiohttp.ClientSession() as client:
controller = Controller(client, "10.0.20.13", 4200)
return await controller._rh.get("/config")
config = asyncio.run(get())
print(config['circuits'][1])
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
poolcontrolpy
was created by Kevin Robinson. It is licensed under the terms of the MIT license.
Credits
poolcontrolpy
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for poolcontrolpy-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90ddbaff90050c1d48b643d4db9a00d39bb0a5958043f3c8a32b0392e379aa44 |
|
MD5 | 792d5b6617fe464cca2b39f76676caad |
|
BLAKE2b-256 | 2b991da3bd149d3c6b04d9e20a932fca5b58f4e3d089da66652cea9229b0bad0 |