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 details)
Built Distribution
File details
Details for the file kilovolt-0.2.0.tar.gz
.
File metadata
- Download URL: kilovolt-0.2.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74ec5aa7bc3bf3fa69c76214225d50ac90aa223bf64fe0cd0e2dae6ab0d73156 |
|
MD5 | aface10600526abfbe7532a6a9279ec6 |
|
BLAKE2b-256 | 428c8a724e60b3164c12a3fa665862f3baf88b0f42ce3b98482cc03d16aa261a |
File details
Details for the file kilovolt-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: kilovolt-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b5da38d2ada9ea253e83eb41c1e5bef8869cb3a00a8362cecffebc7d9a00b83 |
|
MD5 | d099641d036c49b0924248ea2d722ace |
|
BLAKE2b-256 | addea64f6a2460bfac1b3a714d91497f6feff58da55c9f922bd2f07e5c882013 |