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.2.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.2-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for twinleaf_rui-1.0.2.tar.gz
Algorithm Hash digest
SHA256 832573c7f35c8d783fedd818cc4da067bab4fe14fe4e818f07c2d54d26af2472
MD5 ea2236e984bf7644c07ed20b1df4329d
BLAKE2b-256 40688bbd0068ae92e060ce6c2d52f55a55812bc7a867478417bf1e9a935f3c33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: twinleaf_rui-1.0.2-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.11.2

File hashes

Hashes for twinleaf_rui-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 628d716bfb17f5bb9282fc6221139d487fe119c0b03eceaf2174993a7ff2c2ef
MD5 b5a6e17e0e4c8827255590dd60a400cb
BLAKE2b-256 bfa4ce4e54f567835a533e88bede9a81855b8580c57b12dad6c8b754840ef48b

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