Asynchronous Python client for the PoolCopilot API
Project description
Asynchronous Python client for the PoolCopilot API.
About
A python package to interact with a PoolCop device.
Installation
pip install poolcop
Usage
import asyncio
import json
from poolcop import PoolCopilot
API_KEY="xxxxxxxxxxxxxxxxxxxxxxx"
async def main() -> None:
"""Show example on fetching the status from PoolCop."""
async with PoolCopilot(api_key=API_KEY) as client:
status = await client.status()
print(json.dumps(status, indent=2))
if __name__ == "__main__":
asyncio.run(main())
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
poolcop-0.0.1.tar.gz
(7.4 kB
view hashes)