-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard-monitor.py
executable file
·52 lines (47 loc) · 1.23 KB
/
dashboard-monitor.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
from dash import dcc
from dash import html
import dash_auth
# import dash_daq as daq
import dash_bootstrap_components as dbc
from my_secrets import (
VALID_USERNAME_PASSWORD_PAIRS,
)
from maindash import app
from tabs.support import tab_support
from tabs.kpi_and_catalog import tab_kpi_catalog
from tabs.reuses import tab_reuses
from tabs.certif import tab_certif
# from tabs.hvd import tab_hvd
from tabs.reports import tab_reports
# from tabs.siret import tab_siret
auth = dash_auth.BasicAuth(
app,
VALID_USERNAME_PASSWORD_PAIRS
)
# %% APP LAYOUT:
app.layout = dbc.Container(
[
dbc.Row([
html.H3(
"Visualisation d'indicateurs de data.gouv.fr",
style={
"padding": "5px 0px 10px 0px",
# "padding": "top right down left"
},
),
]),
dcc.Tabs([
tab_support,
tab_kpi_catalog,
tab_reuses,
tab_certif,
# tab_hvd,
tab_reports,
# tab_siret,
]),
]
)
# %%
if __name__ == '__main__':
app.run_server(debug=False, use_reloader=False, port=8053)