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.3.tar.gz (13.5 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.3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nanokvm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f7bb5a984e39d4373454275664868ec18d263c8f0a25f186c38f8e100073651e
MD5 091b82614f4e17dbdd27f25e3db0c05b
BLAKE2b-256 8636d8b8cf3a2b1179347156b7a15c4307074f45931a8f84941f73fb6130ebdf

See more details on using hashes here.

Provenance

The following attestation bundles were made for nanokvm-0.0.3.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.3-py3-none-any.whl.

File metadata

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

File hashes

Hashes for nanokvm-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 146c0c3d7059457c49adf0cc7f7b1d796ed810b47541e265687b9f54127683e6
MD5 b2b8ead3fba3211287e124607e244355
BLAKE2b-256 834150b247a648e6933f3fe2c08d760934cf7418a1323e6843ae9ae9962d28a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for nanokvm-0.0.3-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