rillrate-py
Real-time UI for bots.
Python 3 bindings for RillRate.
How to use
Install the library:
pip install rillrate
Import it in your code and install a tracer:
import rillrate
rillrate.install("my-app")
Metrics
Add metrics allow to to monitor some properties of your bot.
Board
Board of keys and values.
board = rillrate.Board("package-1.dashboard-1.group-1.pulse");
board.set("Key", "Value");
Counter
Integer counter for something.
counter = rillrate.Counter("package-1.dashboard-1.group-1.counter");
counter.inc(123);
Gauge
Shows value in a range.
gauge = rillrate.Gauge("package-1.dashboard-1.group-1.gauge");
gauge.set(10);
Pulse
Renders a chart of the latest values slice.
pulse = rillrate.Pulse("package-1.dashboard-1.group-1.pulse");
pulse.push(50.2);
Table
Table with rows and cols.
table = rillrate.Table("package-1.dashboard-1.group-1.table");
table.set(1, 2, "cell");
Controls
Click
A clickable button.
click = rillrate.Click("package-1.dashboard-1.group-1.click");
click.clicked()
Selector
Selector of value from a set.
selector = rillrate.Selector("package-1.dashboard-1.group-1.selector");
selector.select("Value")
Slider
Slider to choose value in a range.
slider = rillrate.Slider("package-1.dashboard-1.group-1.slider");
slider.set(12.0)
Switch
Switch is a toggleable button with a boolean value.
switch = rillrate.Switch("package-1.dashboard-1.group-1.switch");
switch.turn(True)
Expansions