Compare commits
2 Commits
91c6272f9d
...
f188cff5b4
Author | SHA1 | Date |
---|---|---|
Jonas Weinz | f188cff5b4 | |
Jonas Weinz | 4257a75557 |
|
@ -1,13 +1,13 @@
|
||||||
# pyscript-bootstrap-templates
|
# pyscript-bootstrap-templates
|
||||||
|
|
||||||
|
|
||||||
This package provides tools to write a single page Dashboard apps with python that run entirely client-side in the Browser.
|
This package provides tools to write single page Dashboard apps with python that run entirely client-side in the Browser.
|
||||||
To do this, it uses [pyscript](https://pyscript.net/) and builds python wrapper classes for various [bootstrap](https://getbootstrap.com/) elements.
|
To do this, it uses [pyscript](https://pyscript.net/) and builds python wrapper classes for various [bootstrap](https://getbootstrap.com/) elements.
|
||||||
|
|
||||||
![image-20230604191240295](img/demo.png)
|
![image-20230604191240295](img/demo.png)
|
||||||
|
|
||||||
* examples (Code is in [examples](./examples/)):
|
* examples (Code is in [examples](./examples/)):
|
||||||
* [Hello World](https://antielektron.github.io/pyscript_bootstrap_templates/examples/)
|
* [Hello World](https://antielektron.github.io/pyscript_bootstrap_templates/examples/01_hello_world)
|
||||||
* [scikit-image sobel filter](https://antielektron.github.io/pyscript_bootstrap_templates/examples/02_image_filter)
|
* [scikit-image sobel filter](https://antielektron.github.io/pyscript_bootstrap_templates/examples/02_image_filter)
|
||||||
* [numpy grid demo](https://antielektron.github.io/pyscript_bootstrap_templates/examples/03_numpy_grid_demo)
|
* [numpy grid demo](https://antielektron.github.io/pyscript_bootstrap_templates/examples/03_numpy_grid_demo)
|
||||||
* [cell colony detector using opencv](https://antielektron.github.io/pyscript_bootstrap_templates/examples/04_cell_detector)
|
* [cell colony detector using opencv](https://antielektron.github.io/pyscript_bootstrap_templates/examples/04_cell_detector)
|
||||||
|
|
|
@ -150,7 +150,7 @@ def generate_project_files(root_folder: pathlib.Path,
|
||||||
pyscript_py_url: str = "https://pyscript.net/latest/pyscript.py",
|
pyscript_py_url: str = "https://pyscript.net/latest/pyscript.py",
|
||||||
bootstrap_css_url: str = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css",
|
bootstrap_css_url: str = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css",
|
||||||
bootstrap_js_url: str = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js",
|
bootstrap_js_url: str = "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js",
|
||||||
pyscript_bootstrap_templates_wheel_url: str = "https://the-cake-is-a-lie.net/gogs/jonas/pyscript-bootstrap-templates/raw/branch/main/dist/pyscript_bootstrap_templates-0.1.0-py3-none-any.whl",
|
pyscript_bootstrap_templates_wheel_url: str = "https://github.com/antielektron/pyscript_bootstrap_templates/raw/main/dist/pyscript_bootstrap_templates-0.2.0-py3-none-any.whl",
|
||||||
**_):
|
**_):
|
||||||
|
|
||||||
if paths is None:
|
if paths is None:
|
||||||
|
@ -317,7 +317,7 @@ def main():
|
||||||
argument_parser.add_argument("--bootstrap-js-url", type=str,
|
argument_parser.add_argument("--bootstrap-js-url", type=str,
|
||||||
help="the url of the bootstrap js file", default="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js")
|
help="the url of the bootstrap js file", default="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js")
|
||||||
argument_parser.add_argument("--pyscript-bootstrap-templates-wheel-url", type=str,
|
argument_parser.add_argument("--pyscript-bootstrap-templates-wheel-url", type=str,
|
||||||
help="the url of the pyscript bootstrap templates wheel file", default="https://the-cake-is-a-lie.net/gogs/jonas/pyscript-bootstrap-templates/raw/branch/main/dist/pyscript_bootstrap_templates-0.2.0-py3-none-any.whl")
|
help="the url of the pyscript bootstrap templates wheel file", default="https://github.com/antielektron/pyscript_bootstrap_templates/raw/main/dist/pyscript_bootstrap_templates-0.2.0-py3-none-any.whl")
|
||||||
argument_parser.add_argument("--pwa-bg-color", type=str, help="background color for pwa configuration", default="#000000")
|
argument_parser.add_argument("--pwa-bg-color", type=str, help="background color for pwa configuration", default="#000000")
|
||||||
argument_parser.add_argument("--pwa-theme-color", type=str, help="theme color for pwa configuration", default="#ffffff")
|
argument_parser.add_argument("--pwa-theme-color", type=str, help="theme color for pwa configuration", default="#ffffff")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue