A package for interacting with the concord4ws server.
Project description
concord4ws-py
Python library for interfacing with Concord4WS https://github.com/JoeyEamigh/concord4ws. This library depends on the Concord4WS server.
Installation
pip install concord4ws
Usage
import asyncio
from concord4ws import Concord4WSClient
async def main():
client = Concord4WSClient("127.0.0.01", 8080)
if await client.test_connect():
print("Connected")
else:
print("Not Connected")
zoneCallback = lambda: print(client._state.zones)
partitionCallback = lambda: print(client._state.partitions)
await client.connect()
print("Ready!")
for zone in client._state.zones:
client.register_callback(zone, zoneCallback)
for partition in client._state.partitions:
client.register_callback(partition, partitionCallback)
await asyncio.futures.Future()
asyncio.run(main())
Development Setup
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
concord4ws-0.3.0.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file concord4ws-0.3.0.tar.gz.
File metadata
- Download URL: concord4ws-0.3.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.13.0 Linux/6.12.8-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d1e3ca0ab6a9505704d404a953f8e3b353d55bed3ae8602543ee844696923d4
|
|
| MD5 |
7629d63093e30c1b74198e4b78655eaa
|
|
| BLAKE2b-256 |
1bb7314aa96bd4f74a62d6c33dd8db688eb2e472009475d227a01fbe78a5b20b
|
File details
Details for the file concord4ws-0.3.0-py3-none-any.whl.
File metadata
- Download URL: concord4ws-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.13.0 Linux/6.12.8-arch1-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
332cce3b5a7a40065d1a1f94dd5da554d0dd9caf008a1aa71442ca25cea06db8
|
|
| MD5 |
66ce1e6667c3dc2e8a7b6d018be13b7c
|
|
| BLAKE2b-256 |
de3c869b319f4a9efe8470b147629c28c726a84dc418e2b7544fca4ae2ce36b7
|