Python client for Kilovolt servers, supports Kilovolt Protocol v9+
Project description
Kilovolt client
Python client for Kilovolt servers, supports Kilovolt Protocol v9+
Getting started
pip install kilovolt
(on PyPI)
Example usage
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())
LICENSE
Kilovolt client is licensed under ISC, see LICENSE
for more details.
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
kilovolt-0.2.0.tar.gz
(4.4 kB
view hashes)