This release is a pre-release and may not be stable for production use.
Floods-HTML
Floods-HTML is a python package to simplify the generation of HTML pages of flood forecasting products typically provided for EFAS and GloFAS.
Installation
Clone source code repository
$ git clone https://github.com/ecmwf/floods-html.git
$ cd floods-html
Create and activate conda environment
$ conda create -n floods_html python=3.10
$ conda activate floods_html
For default installation, run
$ pip install .
For a developer installation (includes linting and test libraries), run
$ pip install -e .[dev]
$ pre-commit install
If you only plan to run the tests, instead run
$ pip install -e .[test]
If you plan to build a source and a wheel distribution, it is additionally required to run
$ pip install build
Usage
Supported JSON Format
{"data": [
{"type": OBJECT_NAME, "data": OBJECT},
{"type": OBJECT_NAME, "data": OBJECT},
...
]}
Supported objects are currently
"svg_figure"
{
"title": FIGURE_NAME,
"name": FIGURE_FILENAME,
}
"table"
{
"title": TABLE_NAME,
"header": [
TABLE_ENTRY,
TABLE_ENTRY,
...
],
"rows": [
[
TABLE_ENTRY,
TABLE_ENTRY,
...
],
[
TABLE_ENTRY,
TABLE_ENTRY,
...
],
...
]
}
where a table entry is
{
"value": ENTRY_VALUE,
"style": DICTIONARY_OF_CSS_OPTIONS (optional),
"class_name": CLASS_STRING (optional),
"id": ID_STRING (optional)
"col_span": INT (optional),
}
Release files for floods-html 0.6a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| floods_html-0.6a3.tar.gz | 37.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| floods_html-0.6a3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.2 kB
Release files / floods_html-0.6a3.tar.gz
| Download URL | floods_html-0.6a3.tar.gz |
|---|---|
| Size | 37.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
970b818192e1498279e25db60bfa3e5388e384abebfe4800e710024c22ae8388
|
|
BLAKE2b-256 checksum How to use checksums |
c04daca43fedbe3beb49fdf9269ff05cde03bd2a399b491854a192efbeb37f4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / floods_html-0.6a3-py3-none-any.whl
| Download URL | floods_html-0.6a3-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9271badb9c29f9260471a45727913c06c67c06de854b32168c24ea0a86cc694
|
|
BLAKE2b-256 checksum How to use checksums |
9eeb6f3f9d48c6c87d98b39a17c4e38cc0b05e09d96c2573d1bb73054fb43781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|