Create python-publish.yml
better import format
lib setup done
Python client for Kilovolt servers, supports Kilovolt Protocol v9+
pip install kilovolt
(on PyPI)
import asyncio
import os
from kilovolt import KilovoltClient
async def connect():
kv = KilovoltClient("ws://localhost:4337/ws", os.getenv("KILOVOLT_PASSWORD"))
await kv.connect()
# Subscribe to key
await kv.subscribe("twitch/ev/message", lambda key, val: print(val))
# List all keys that begin with "twitch"
print(await kv.list("twitch"))
asyncio.run(connect())
Kilovolt client is licensed under ISC, see LICENSE
for more details.