Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jumpstarter_driver_yepkit-0.8.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

jumpstarter_driver_yepkit-0.8.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file jumpstarter_driver_yepkit-0.8.1.tar.gz.

File metadata

File hashes

Hashes for jumpstarter_driver_yepkit-0.8.1.tar.gz
Algorithm Hash digest
SHA256 3b311d2ddce0044d169e26e408c6fdbe44289e0dddff465e68885254531e4d6e
MD5 7732f24fb298c182c7893308b2a4e37a
BLAKE2b-256 1e98ba4916b3486f8c8260e1de87e0b05f050a99b3426b76b9e7a54c63294aa9

See more details on using hashes here.

File details

Details for the file jumpstarter_driver_yepkit-0.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jumpstarter_driver_yepkit-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b263591719dbfe174eccf89fa46b6f2ef7786b8b7ca861b52216b19dde4f95f4
MD5 8f21ee973a6ec0bd1b7226112fead019
BLAKE2b-256 745b06d11be5b1055909e7355c7d57715cc1b5d73f5b2d1f39f4fb97622f438a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.8.1 This release

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

Supported by

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