A conversion tool to turn html/bootstrap into Python code for use with Dash and Plotly.
Project description
convert-html-to-dash
A conversion tool to turn html/bootstrap into Python code for use with Dash and Plotly
python convert.py -h
usage: convert.py [-h] [-i INFILE] [-o OUTFILE] [-p PRIORITY_LIST]
Convert HTML into Python Code for Dash with bootstrap
optional arguments:
-h, --help show this help message and exit
-i INFILE input file
-o OUTFILE output file
-p PRIORITY_LIST priority list for replacing tags.
Options: dcc = dash_core_components, dbc = dash_bootstrap_components, html = dash_html_components
Exanple: -p dbc -p html -p dcc
Default Order: dcc, dbc, html
Note: You can omit a modules too ie. -p html would only use html components
python convert.py -i infile.html -o outfile.html
dbc.Container(
className="container",
children=[
html.H1(children=["Some Test Information"]),
dbc.Row(
className="row",
children=[
dbc.Col(className="col", children=[]),
...
python convert.py -i infile.html -o outfile.html -p html
html.Div(
className="container",
children=[
html.H1(children=["Some Test Information"]),
html.Div(
className="row",
children=[
html.Div(className="col", children=[]),
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Close
Hashes for convert-html-to-dash-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a51755dd09a0bf49f66f5c4eb17db27ca3ee8762aae578271119b38fc5bd6510 |
|
MD5 | b9e7c8faf51b612e009dc865e7f84f5e |
|
BLAKE2b-256 | 3e031ea034f4dfa1b62803c6b13449bcf0e891bf010883b091b718968f2dba89 |
Close
Hashes for convert_html_to_dash-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db51b9e173c258141b3eab49f3ef3aeac78149dcd8d314e4e3062c08b7801f01 |
|
MD5 | 116c474c4497afa4129fc2e56192cd63 |
|
BLAKE2b-256 | 33b07accfd9fed2aa0b9fe77022e282dd40ac5fe34cb17c592afc897ff621455 |
Close
Hashes for convert_html_to_dash-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c8540be43802751e6ff3bfb2f61ad38ed61cbc2e885586e4af45a36dc1a220f |
|
MD5 | e36c7191dcdb0ea90361152da0f71093 |
|
BLAKE2b-256 | ab96198de8f481fcd13338a988de8cf75331bd580fda8606f9ef363e7af62fbd |