Skip to main content

Async client for NanoKVM devices.

Project description

python-nanokvm

Async Python client for NanoKVM.

Usage

from aiohttp import ClientSession
from nanokvm.models import ButtonType
from nanokvm.client import NanoKVMClient


async with ClientSession() as session:
    client = NanoKVMClient("http://kvm-8b76.local/api/", session)
    await client.authenticate("username", "password")

    dev = await client.get_info()
    hw = await client.get_hardware()
    gpio = await client.get_gpio()

    await client.paste_text("Hello\nworld!")

    async for frame in client.mjpeg_stream():
        print(frame)

    await client.push_button(ButtonType.POWER, duration_ms=1000)

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

nanokvm-0.0.4.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nanokvm-0.0.4-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file nanokvm-0.0.4.tar.gz.

File metadata

  • Download URL: nanokvm-0.0.4.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nanokvm-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b7d62caf5875afa3456b42559e9cc116345c361067f07acccfe21ba62513841a
MD5 9ef1f6456da9a183fc7f2454a63ab6ad
BLAKE2b-256 d581e5e1a90324247e382743bb641dfb354e122048c2e4dadafb818e06c2ac40

See more details on using hashes here.

Provenance

The following attestation bundles were made for nanokvm-0.0.4.tar.gz:

Publisher: publish-to-pypi.yml on puddly/python-nanokvm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nanokvm-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: nanokvm-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nanokvm-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9ae56796bc9f0e3ac74e623a6ef3f260cddb04d7e9b0835cfac5aed058e48533
MD5 8168d41f46ecbb48336fa9a272900af5
BLAKE2b-256 574efc3ffa4d6d5e8a1b90bf7c4f8ca1ddd4c6b1003798ca6a8c48ed593cd191

See more details on using hashes here.

Provenance

The following attestation bundles were made for nanokvm-0.0.4-py3-none-any.whl:

Publisher: publish-to-pypi.yml on puddly/python-nanokvm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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