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
pip install convert-html-to-dash==0.1
python -m convert-html-to-dash -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 -m convert-html-to-dash -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 -m convert-html-to-dash -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 Distribution
Close
Hashes for convert-html-to-dash-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41cce7bd3475c619614bcc1e9be94ecf5957b7a4260c7cf591fe310170e3883d |
|
MD5 | 0541caac557f83ee30a520642566c89a |
|
BLAKE2b-256 | 9739abbdb996987ffcd1acb64e5bae1d43874c0b88dec0c58970d813e9dc619c |
Close
Hashes for convert_html_to_dash-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52d5f06772eb2ee941e036eec4147a7dcee44f672494462598f17d653e0d4816 |
|
MD5 | b65768bd3cd855fdf0840d1c5023829a |
|
BLAKE2b-256 | 16569df3608b227225184bbf249d7251d8374ad4e634d2dece475af24f972263 |