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
Configure pool controller and confirm successful connection.
import asyncio
import aiohttp
from poolcontrolpy.poolcontrolpy import Controller
async def checkconnection():
async with aiohttp.ClientSession() as client:
controller = Controller(client, "10.0.20.13", 4200)
return await controller.checkconnect()
resp = asyncio.run(checkconnection())
print(resp)
Note: This example uses 'asyncio.run' so it cannot be called when another asyncio event loop is running in the same thread.
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
File details
Details for the file poolcontrolpy-0.2.16.tar.gz
.
File metadata
- Download URL: poolcontrolpy-0.2.16.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fdcc8cf8c037605ddca69cb527866be4da55c7ceb5679c5f2e5aa34fa394902 |
|
MD5 | b54f839472fb58bf97b3277cb4aa28a8 |
|
BLAKE2b-256 | 2c28d1bf9a5b70c844836d52a284ba1051befc1a406a8c87b6819f48c0d88ce4 |
File details
Details for the file poolcontrolpy-0.2.16-py3-none-any.whl
.
File metadata
- Download URL: poolcontrolpy-0.2.16-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed188741a191f4ed1d425971b9144908bdc7850332c62737f25ce25bb31adae7 |
|
MD5 | 6ed7d16483db5af7854b70a0079ba166 |
|
BLAKE2b-256 | 49c10b58da808e4ac4f88fe5538227c59c0e0de56244d320990ceb6fc13b06e9 |