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 details)
Built Distribution
File details
Details for the file poolcop-0.0.1.tar.gz
.
File metadata
- Download URL: poolcop-0.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.2 Linux/4.19.104-microsoft-standard
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 375509d96e7a50b3a84ed20e2b897e3f80bfdd9c1030b701643aea49cb1ce760 |
|
MD5 | 081a0f5480048dcdbba560295a41045c |
|
BLAKE2b-256 | 1466fa4e62c41825056b84c945b2f1938b01739413b65da9ae336f4b45505f96 |
File details
Details for the file poolcop-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: poolcop-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.11.2 Linux/4.19.104-microsoft-standard
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6274330037610be435c257066df793b899e0d6b7fdafaef38ee6a1cb3eede941 |
|
MD5 | f3d95d3b2d79e7a3be8aa9bc352d541b |
|
BLAKE2b-256 | 98572cfd48556b79c1433e23b7a6c11b2ca68d450a44863fec456340d6f039e8 |