Yepkit Driver
jumpstarter-driver-yepkit provides functionality for interacting with Yepkit
products.
Installation
:substitutions:
$ pip3 install --extra-index-url {{index_url}} jumpstarter-driver-yepkit
Configuration
Example configuration:
export:
power:
type: jumpstarter_driver_yepkit.driver.Ykush
config:
serial: "YK25838"
port: "1"
power2:
type: jumpstarter_driver_yepkit.driver.Ykush
config:
serial: "YK25838"
port: "2"
Config parameters
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
| serial | The serial number of the ykush hub, empty means auto-detection | no | None | |
| port | The port number to be managed, "0", "1", "2", "a" which means all | str | yes | "a" |
API Reference
The yepkit ykush driver provides a PowerClient with the following API:
.. autoclass:: jumpstarter_driver_power.client.PowerClient()
:members: on, off, cycle
:no-index:
Examples
Powering on and off a device
:skipif: True
client.power.on()
time.sleep(1)
client.power.off()
CLI access
$ sudo ~/.cargo/bin/uv run jmp shell --exporter-config ./packages/jumpstarter-driver-yepkit/examples/exporter.yaml
WARNING:Ykush:No serial number provided for ykush, using the first one found: YK25838
INFO:Ykush:Power OFF for Ykush YK25838 on port 1
INFO:Ykush:Power OFF for Ykush YK25838 on port 2
$$ j
Usage: j [OPTIONS] COMMAND [ARGS]...
Generic composite device
Options:
--help Show this message and exit.
Commands:
power Generic power
power2 Generic power
$$ j power on
INFO:Ykush:Power ON for Ykush YK25838 on port 1
$$ exit
Release files for jumpstarter-driver-yepkit 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jumpstarter_driver_yepkit-0.9.0.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jumpstarter_driver_yepkit-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / jumpstarter_driver_yepkit-0.9.0.tar.gz
| Download URL | jumpstarter_driver_yepkit-0.9.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad47973e3d2e26efc357a661b61c55f9fa7a97eab324ac3146786035f5450875
|
|
BLAKE2b-256 checksum How to use checksums |
39a8cbcc0de341bb462ef34e572e98042c0c4d5bde35b87b78a906a0187597a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|
Release files / jumpstarter_driver_yepkit-0.9.0-py3-none-any.whl
| Download URL | jumpstarter_driver_yepkit-0.9.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51d32c4ef52b1e592f7180ad7a9b16e69960ab9fa730675fbe51a227f9967c98
|
|
BLAKE2b-256 checksum How to use checksums |
ab85712234460d5e449e6a43b39b3b3aa0cd5437dd6538b2e3d6e3c53d04aa41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.22
|