Metadata-Version: 2.1
Name: poolcontrolpy
Version: 0.1.7
Summary: Package for accessing nodejs-poolController
License: MIT
Author: Kevin Robinson
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: aiohttp (>=3.8.1,<4.0.0)
Requires-Dist: asyncio (>=3.4.3,<4.0.0)
Description-Content-Type: text/markdown

# poolcontrolpy

Package for accessing nodejs-poolController for use with a planned Home Assistant integration.

## Installation

```bash
$ pip install poolcontrolpy
```

## Usage

Configure pool controller and confirm successful connection.

```python
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`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).

