Dashboard

class rpcjs.dashboard.Dashboard(name='rpcjs.dashboard', secret='__secret__')[source]

Bases: object

Dashboard entry point

Methods

add_page(page[, route, header]) Add a new page to the dashboard
on_event(event, handler[, namespace]) Register an handler for a givent event
run([host, port]) Run the flask App
init_worker  
add_page(page, route=None, header=None, **kwargs)[source]

Add a new page to the dashboard

Parameters:
page: Page

page object

route: str

Route specification to reach the page Will default to the page route if left undefined

header: str

HTML header to insert onto the page

static init_worker()[source]
on_event(event, handler, namespace='/')[source]

Register an handler for a givent event

run(host='127.0.0.1', port=5000)[source]

Run the flask App

rpcjs.dashboard.async_call(fun, *args, **kwargs)[source]
rpcjs.dashboard.async_process_call(fun, *args, **kwargs)[source]
rpcjs.dashboard.async_thread_call(fun, *args, **kwargs)[source]

Runs a function async and execute the resulting remote function call

rpcjs.dashboard.handle_error(msg)[source]
rpcjs.dashboard.host()[source]
rpcjs.dashboard.port()[source]