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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7bb5a984e39d4373454275664868ec18d263c8f0a25f186c38f8e100073651e
|
|
| MD5 |
091b82614f4e17dbdd27f25e3db0c05b
|
|
| BLAKE2b-256 |
8636d8b8cf3a2b1179347156b7a15c4307074f45931a8f84941f73fb6130ebdf
|
Provenance
The following attestation bundles were made for nanokvm-0.0.3.tar.gz:
Publisher:
publish-to-pypi.yml on puddly/python-nanokvm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nanokvm-0.0.3.tar.gz -
Subject digest:
f7bb5a984e39d4373454275664868ec18d263c8f0a25f186c38f8e100073651e - Sigstore transparency entry: 232189731
- Sigstore integration time:
-
Permalink:
puddly/python-nanokvm@c2b2935593b7132066bcd21067d2e3ddc91902a2 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/puddly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@c2b2935593b7132066bcd21067d2e3ddc91902a2 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
146c0c3d7059457c49adf0cc7f7b1d796ed810b47541e265687b9f54127683e6
|
|
| MD5 |
b2b8ead3fba3211287e124607e244355
|
|
| BLAKE2b-256 |
834150b247a648e6933f3fe2c08d760934cf7418a1323e6843ae9ae9962d28a5
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nanokvm-0.0.3-py3-none-any.whl -
Subject digest:
146c0c3d7059457c49adf0cc7f7b1d796ed810b47541e265687b9f54127683e6 - Sigstore transparency entry: 232189733
- Sigstore integration time:
-
Permalink:
puddly/python-nanokvm@c2b2935593b7132066bcd21067d2e3ddc91902a2 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/puddly
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@c2b2935593b7132066bcd21067d2e3ddc91902a2 -
Trigger Event:
release
-
Statement type: