Add your description here
Project description
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
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 jumpstarter_driver_yepkit-0.7.1.tar.gz.
File metadata
- Download URL: jumpstarter_driver_yepkit-0.7.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d08bcabf3e1378e7ec1712bcf1a5dd1f32d2d66fa9faf3ff935af8d5f26f96fa
|
|
| MD5 |
930c6b5adc4c3ea4ff151574915955ec
|
|
| BLAKE2b-256 |
8e469a3947d27bc0e15f1d9180f25b711c6fff334f757668d8ec0545c31e2847
|
File details
Details for the file jumpstarter_driver_yepkit-0.7.1-py3-none-any.whl.
File metadata
- Download URL: jumpstarter_driver_yepkit-0.7.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17dcfe7901540a9a8ead5a4f2df623ed49a0dd512609857ac1454f5307a50131
|
|
| MD5 |
82a353202040768121a4f182e0a2db9a
|
|
| BLAKE2b-256 |
d6f2c5d2a6cb6bf87191e76495179221a03727909a8d989387729b9da50b6fb3
|