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.6a5
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.6a5.tar.gz | 38.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| floods_html-0.6a5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.9 kB
Release files / floods_html-0.6a5.tar.gz
| Download URL | floods_html-0.6a5.tar.gz |
|---|---|
| Size | 38.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76ba88a94070384d1f1cc13c598d6624baab81510e48fd7df50ad51f59498f08
|
|
BLAKE2b-256 checksum How to use checksums |
185347a5d353fa9c02eb1675f947a5ae9b5594d30c0c8d135bd6e2b4533e5cdf
|
| 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.6a5-py3-none-any.whl
| Download URL | floods_html-0.6a5-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79007b2558f5e14a4c7943eb82b5e386d76c070ded5ba9737522e0710219b966
|
|
BLAKE2b-256 checksum How to use checksums |
d6112565faf387defc099b3275b174fe6b681e8f2350dd06a73fa85db4b29901
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|