All Projects → AmadeusITGroup → Graphdash

AmadeusITGroup / Graphdash

Licence: apache-2.0
A web-based dashboard built on graphs and their metadata.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Graphdash

Grafterm
Metrics dashboards on terminal (a grafana inspired terminal version)
Stars: ✭ 613 (+117.38%)
Mutual labels:  graphs, dashboard
Material Kit React
React Dashboard made with Material UI’s components. Our pro template contains features like TypeScript version, authentication system with Firebase and Auth0 plus many other
Stars: ✭ 3,465 (+1128.72%)
Mutual labels:  dashboard
Quasar Admin Crm
Quasar CRM Admin | VueJS Admin | Featuring 3 different dashboards | Give it a star if you find it useful.
Stars: ✭ 254 (-9.93%)
Mutual labels:  dashboard
Fuxa
Web-based Process Visualization (SCADA/HMI/Dashboard) software
Stars: ✭ 262 (-7.09%)
Mutual labels:  dashboard
Electron Webpack Dashboard
Electron Desktop GUI for Webpack Dashboard
Stars: ✭ 2,748 (+874.47%)
Mutual labels:  dashboard
Datagear
数据可视化分析平台,使用Java语言开发,采用浏览器/服务器架构,支持SQL、CSV、Excel、HTTP接口、JSON等多种数据源
Stars: ✭ 266 (-5.67%)
Mutual labels:  dashboard
plain-free-bootstrap-admin-template
Free Bootstrap 5 Admin and Dashboard Template that comes with all essential dashboard components, elements, charts, graph and application pages. Download now for free and use with personal or commercial projects.
Stars: ✭ 141 (-50%)
Mutual labels:  graphs
Dva Admin
dva admin antd dashboard
Stars: ✭ 278 (-1.42%)
Mutual labels:  dashboard
Apisix Dashboard
Dashboard for Apache APISIX
Stars: ✭ 268 (-4.96%)
Mutual labels:  dashboard
Epiboard
Web Extension — A new tab page extension with material design and useful features 🆕 🎉
Stars: ✭ 262 (-7.09%)
Mutual labels:  dashboard
Postgui
A React web application to query and share any PostgreSQL database.
Stars: ✭ 260 (-7.8%)
Mutual labels:  dashboard
Ccodashboard
Welcome to the Continuous Cloud Optimization Power BI Dashboard GitHub Project. In this repository you will find all the guidance and files needed to deploy the Dashboard in your environment to take benefit of a single pane of glass to get insights about your Azure resources and services.
Stars: ✭ 256 (-9.22%)
Mutual labels:  dashboard
Pygsp
Graph Signal Processing in Python
Stars: ✭ 270 (-4.26%)
Mutual labels:  graphs
Coreui Free Vue Admin Template
Open source admin template based on Bootstrap 5 and Vue 3
Stars: ✭ 2,951 (+946.45%)
Mutual labels:  dashboard
Vorlonjs
A new, open source, extensible, platform-agnostic tool for remotely debugging and testing your JavaScript. Powered by node.js and socket.io
Stars: ✭ 2,893 (+925.89%)
Mutual labels:  dashboard
ai-distillery
Automatically modelling and distilling knowledge within AI. In other words, summarising the AI research firehose.
Stars: ✭ 20 (-92.91%)
Mutual labels:  graphs
Otter
A relatively automatic CRUD backend administration panel for Laravel
Stars: ✭ 261 (-7.45%)
Mutual labels:  dashboard
Modular Admin Html
ModularAdmin - Free Dashboard Theme Built On Bootstrap 4 | HTML Version
Stars: ✭ 2,875 (+919.5%)
Mutual labels:  dashboard
Saleor Dashboard
A GraphQL-powered, single-page dashboard application for Saleor.
Stars: ✭ 278 (-1.42%)
Mutual labels:  dashboard
Osmnx
OSMnx: Python for street networks. Retrieve, model, analyze, and visualize street networks and other spatial data from OpenStreetMap.
Stars: ✭ 3,357 (+1090.43%)
Mutual labels:  graphs

GraphDash

GraphDash is a web-based dashboard built on graphs and their metadata. For example, if you have two graphs in a directory:

.. code:: bash

$ cd default_graph_dir
$ ls
graph.svg graph2.svg

Then you can create two metadata files using YAML format, where you can configure how the graphs will be displayed:

.. code:: bash

$ cat graph.yaml
name: graph.svg
family: 'Category 1'
title: '*Real serious* graph'
text: |
    The description

$ cat graph2.yaml
name: graph2.svg
family: 'Category 2'
title: 'Another important graph'

You may then start the graph dashboard. You will get a nice web interface displaying your graphs, and a search box with autocompletion. You can easily navigate and share your graphs.

.. code:: bash

$ GraphDash --root .
* Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)

.. figure:: https://raw.githubusercontent.com/AmadeusITGroup/GraphDash/master/docs/example.gif :alt:

Installation

Clone and install (in user space):

.. code:: bash

git clone https://github.com/AmadeusITGroup/graphdash.git
cd graphdash
pip install --user .

Or use the Python package:

.. code:: bash

pip install --user graphdash

Launch the webapp

For user-space installation, make sure your $PATH includes ~/.local/bin.

.. code:: bash

$ GraphDash -r default_graph_dir
* Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)

The dashboard can be configured with a YAML config file and the -c/--conf option:

.. code:: bash

$ cat docs/graphdash.yaml
root: ../default_graph_dir
title: "Example of title ;)"
subtitle: "Example of subtitle"

$ GraphDash -c docs/graphdash.yaml
* Running on http://0.0.0.0:5555/ (Press CTRL+C to quit)

You can generate a template of configuration file:

.. code:: bash

$ GraphDash -C template.yaml

Serve with Gunicorn

If not already installed on your machine, install Gunicorn:

.. code:: bash

pip install --user gunicorn setproctitle  # on Fedora you may need to install libffi-devel before

Since you can import the webapp through graphdash:app, you can serve it with Gunicorn:

.. code:: bash

gunicorn -b 0.0.0.0:8888 --pid server.pid graphdash:app

The configuration file of the webapp can be set with the CONF environment variable. With Gunicorn, you can pass environment variables to the workers with --env:

.. code:: bash

gunicorn -b 0.0.0.0:8888 --pid server.pid --env CONF=docs/graphdash.yaml graphdash:app

But you should not use these commands yourself, that is what GraphDashManage is for!

GraphDashManage

GraphDashManage is used to start, stop, restart the instances of Gunicorn serving graphdash:app. It needs a configuration file in the current directory:

.. code:: bash

$ cat settings.sh
ALL_MODES=(
   ['prod']="docs/graphdash.yaml"
   ['test']="docs/graphdash.yaml"
)
ALL_PORTS=(
   ['prod']=1234
   ['test']=5678
)
WORKERS=3

Then you can manage multiple instances of GraphDash using Gunicorn with:

.. code:: bash

$ GraphDashManage start prod
[INFO] Listening at: http://0.0.0.0:1234
[INFO] Booting worker with pid: 30403
[INFO] Booting worker with pid: 30404
[INFO] Booting worker with pid: 30405

$ GraphDashManage start test
[INFO] Listening at: http://0.0.0.0:5678
...

You can generate a template of settings:

.. code:: bash

$ GraphDashManage template > template.sh # to be moved to settings.sh

Webapp configuration file

Possible entries (everything is optional):

  • root: the root directory of the graphs
  • families: path to the families metadata file (optional)
  • title: the title of the webapp
  • subtitle: the subtitle of the webapp
  • placeholder: the default text in the search field
  • header: an optional message at the top (markdown syntax)
  • footer: an optional message at the bottom (markdown syntax)
  • showfamilynumbers: a boolean to toggle family numbering (default is true)
  • showgraphnumbers: a boolean to toggle graph numbering (default is true)
  • theme: change css theme (default is dark)
  • keep: the proportion of common words kept for autocompletion
  • logfile: change default log file of the webapp
  • raw: when loading, look for all graphs and ignore metadata
  • verbose: a boolean indicating verbosity when loading application
  • debug: debug mode (enable Grunt livereload, enable Flask debug mode)
  • headless: headless mode (only search is available, no page is rendered)
  • port: when launched with Flask development server only, port

Graph metadata

Several attributes are supported:

  • name: the path to the graph
  • title: title of the graph, recommended for display purposes (markdown syntax)
  • family: the subsection in which the graph is
  • index: an optional list of keywords describing the graph (useful for search feature)
  • text: an optional description of the graph (markdown syntax)
  • pretext: an optional message appearing before the graph (markdown syntax)
  • file: optional path to the raw data
  • export: optional path to the exportable graph (for example, a PNG file)
  • rank: integer, optional value used to change graphs order (default uses titles)
  • showtitle: a boolean to toggle title display for the graph (default is false)
  • labels: a list of labels (like 'new') which will be rendered in the UI as colored circles
  • other: other metadata not used by GraphDash, but may be needed by other things reading the metadata

Note that if the name attribute is missing, the graph will not be shown and the text will be displayed anyway, like a blog entry.

Family metadata

You may put a .FAMILIES.yaml file at the root of the graph directory. This file may contain metadata for families. It should be a YAML list:

.. code:: yaml

- family: chairs
  rank : 0
- family: tables
  rank : 1
  text: This is a description
  alias: This text will appear instead of "tables"
  labels: new

Each element of the list should be a dict containing:

  • family: the family considered
  • rank: integer, optional value used to change families order (default uses family name)
  • text: an optional description of the family (markdown syntax)
  • alias: an optional name who may be longer than the one in the url (useful to build nice urls)
  • labels: a list of labels (like new) which will be rendered in the UI as colored circles

Available labels are new, update, bugfix, warning, error, ongoing, obsolete. You may give other labels which will be rendered with defaults colors. For customization, you may specify your own labels with a dict syntax:

.. code:: yaml

labels:
- name: newlabel
  color: white
  text_color: black
  text: "NEW LABEL"
  tooltip: null

Development

If you wish to contribute, you need Grunt to generate new css/js files from sass/coffee source files.

.. code:: bash

npm install --no-bin-links # may need to repeat
grunt

Debugging can be made with source map files for browser supporting them in their debugging tools. If not, the Gruntfile.js enables an option to generate non-minified assets.

.. code:: bash

grunt --dev

With the debug mode enabled, Grunt will use the livereload mechanism to reload the browser if any file has changed (and Flask debug mode will reload the server as well).

.. code:: bash

GraphDash --debug & # or python -m graphdash
grunt watch

If you used Gunicorn with a PID file, Grunt will automatically reload it if any Python files change.

.. code:: bash

gunicorn -b 0.0.0.0:8888 --pid server.pid graphdash:app &
grunt watch

You can use tox build packages and run tests.

.. code:: bash

tox
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].