rillrate-py

PyPI

Real-time UI for bots.

Python 3 bindings for RillRate.

How to use

Install the library:

sh pip install rillrate

Import it in your code and install a tracer:

python import rillrate rillrate.install("my-app")

Metrics

Add metrics allow to to monitor some properties of your bot.

Board

Board of keys and values.

python board = rillrate.Board("package-1.dashboard-1.group-1.pulse"); board.set("Key", "Value");

Counter

Integer counter for something.

python counter = rillrate.Counter("package-1.dashboard-1.group-1.counter"); counter.inc(123);

Gauge

Shows value in a range.

python gauge = rillrate.Gauge("package-1.dashboard-1.group-1.gauge"); gauge.set(10);

Pulse

Renders a chart of the latest values slice.

python pulse = rillrate.Pulse("package-1.dashboard-1.group-1.pulse"); pulse.push(50.2);

Table

Table with rows and cols.

python table = rillrate.Table("package-1.dashboard-1.group-1.table"); table.set(1, 2, "cell");

Controls

Click

A clickable button.

python click = rillrate.Click("package-1.dashboard-1.group-1.click"); click.clicked()

Selector

Selector of value from a set.

python selector = rillrate.Selector("package-1.dashboard-1.group-1.selector"); selector.select("Value")

Slider

Slider to choose value in a range.

python slider = rillrate.Slider("package-1.dashboard-1.group-1.slider"); slider.set(12.0)

Switch

Switch is a toggleable button with a boolean value.

python switch = rillrate.Switch("package-1.dashboard-1.group-1.switch"); switch.turn(True)

Expansions