Welcome to Dashboard's documentation! ===================================== A cool little server for serving Python widgets. .. toctree:: :maxdepth: 2 :caption: API documentation: widgets/index dashboard Installation ============ To install:: git clone https://github.com/justinbarrick/dashboard cd dashboard make build Running ======= To run the unit tests:: make test To run the web server:: make run And then you can use ``make browser`` to load it in your browser. Writing new widgets =================== To write a widget called ``example``, create a new file under ``dashboard/widgets`` called ``example.py`` with the content:: async def example_widget(request): return { 'variable': 'hello!' } This widget will then be reachable at ``/api/widgets/example``. Now, create a template for it in ``dashboard/widgets/templates/expample.jinja.html``::