Skip to main content
Pre-release

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.6a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for floods-html 0.6a2
File Size Uploaded
floods_html-0.6a2.tar.gz 31.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for floods-html 0.6a2
File Interpreter ABI Platform
floods_html-0.6a2-py3-none-any.whl Python 3 none any Details

Total release size: 50.8 kB

Release files / floods_html-0.6a2.tar.gz

Download URL floods_html-0.6a2.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4fe21691b154e08ee72892915292700d0d02f53d4e643424550fd4855c341528
BLAKE2b-256 checksum
How to use checksums
a9b12def3d07666ae42e3f18a8df34305f9d3910fd3038c8e688a2516abcd801
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.6a2-py3-none-any.whl

Download URL floods_html-0.6a2-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
160e563a54906f385db9576b7bbc69cfb6eeebe807b7f8a988318e56dd0a28aa
BLAKE2b-256 checksum
How to use checksums
9d67879d589986ce0baedd6e641fafdef1af7bf9ede5d6dff4bed01a429518ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page