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.