Skip to main content

Rpc User Interface for Twinleaf RPCS

Project description

Twinleaf RUI: Rpc User Interface

RUI is a multitool for controlling Twinleaf sensor RPCs, featuring fuzzy searching RPC names for easy command line use and a Qt slider GUI popup. It is based on the twinleaf Python library.

Installation

Install with PyPi using:

pip install twinleaf-rui

RUI GUI

Usage:

rui [flags] [search terms]

RUI's default behaviour is a slider interface that launches in a popup window. Search terms, if given, will use the search/select CLI pre-populate` the control panel (see below); otherwise, it will open a blank window with a search bar to add sliders with. The minimum and maximum values of sliders can be changed with the text boxes to the left and right of the slider, and sliders can be removed from the view with the trash can button.

Flags

  • --restore will reinstate RUI GUI's previous open sliders
  • --all (-a) will select all matched RPCs instead of prompting for selection
  • --exact (-e) will search for exact strings instead of fuzzy-searching
  • --multisearch (-m) will search for RPCs that match any of the space-separated search terms
  • --root (-r) and --sensor (-s) will specify the URL and route to look for a board at respectively

RUI CLI

Usage:

rui cli [flags] [search terms] [argument] # in any order

For terminal input, use RUI CLI, which asks for search terms to select one or more RPCs, and then prompts values to call them with. If search terms and/or a numeric argument are given, RUI CLI will use them without asking, otherwise it will prompt for them.

  • Exit the RUI CLI with Ctrl+C (process interrupt signal) or by typing "quit" or "exit" in any prompt.
  • Select multiple search results by inputting their indices separated by spaces, or select all results by inputting * instead of an index.
  • All RUI GUI flags except --restore will have the same functionality in RUI CLI.
  • --peek (-p) will just check the value(s) of selected RPC(s) without prompting to change

Examples

$ rui cuotff #(sic)
[ 1. bar.data.cutoff(float)
[ 2. imu.data.cutoff(float)
[ 3. mcutemp.data.cutoff(float)
[ 4. sync.data.cutoff(float)
[ 5. vrail.data.cutoff(float)
[ Select rpc(s) by , or enter terms to narrow search:
>>> 2 3 4
# GUI opens
$ rui cli decim 1 --all
[ 1. bar.data.decimation(int)
[ 2. imu.data.decimation(int)
[ 3. mcutemp.data.decimation(int)
[ 4. sync.data.decimation(int)
[ 5. vrail.data.decimation(int)
[ 
[ bar.data.decimation(int)
[ Previous value: 5
[ Reply: 1
[ 
[ imu.data.decimation(int)
[ Previous value: 100
[ Reply: 1
[ 
[ mcutemp.data.decimation(int)
[ Previous value: 1
[ Reply: 1
[ 
[ sync.data.decimation(int)
[ Previous value: 1
[ Reply: 1
[ 
[ vrail.data.decimation(int)
[ Previous value: 1
[ Reply: 1

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

twinleaf_rui-1.0.1.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

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

twinleaf_rui-1.0.1-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file twinleaf_rui-1.0.1.tar.gz.

File metadata

  • Download URL: twinleaf_rui-1.0.1.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for twinleaf_rui-1.0.1.tar.gz
Algorithm Hash digest
SHA256 66c4955e07407999c904f4597f067a63e693be1c8a4a6f1b52a191506e42f68b
MD5 ce09e914cbf757ec0d172a3dac97c008
BLAKE2b-256 51cf4bf6599a4bde1474b4b8799e1afc1bd2b4f38ef80d8ef9adf60b16020a2d

See more details on using hashes here.

File details

Details for the file twinleaf_rui-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: twinleaf_rui-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for twinleaf_rui-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6b832a21d479e1e4222ea8086a7751f550588e1bf44cd60ed7141c85d01bd9f
MD5 672b3358112e6d14492467e57da54a53
BLAKE2b-256 a651e175c22f6eba56d3ce3b37946b9319e73e0fb38273a944a3e45667424874

See more details on using hashes here.

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