Skip to main content

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


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)

Uploaded Source

Built Distribution

kilovolt-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for kilovolt-0.2.0.tar.gz
Algorithm Hash digest
SHA256 74ec5aa7bc3bf3fa69c76214225d50ac90aa223bf64fe0cd0e2dae6ab0d73156
MD5 aface10600526abfbe7532a6a9279ec6
BLAKE2b-256 428c8a724e60b3164c12a3fa665862f3baf88b0f42ce3b98482cc03d16aa261a

See more details on using hashes here.

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

Hashes for kilovolt-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b5da38d2ada9ea253e83eb41c1e5bef8869cb3a00a8362cecffebc7d9a00b83
MD5 d099641d036c49b0924248ea2d722ace
BLAKE2b-256 addea64f6a2460bfac1b3a714d91497f6feff58da55c9f922bd2f07e5c882013

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page