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

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.6a4
File Size Uploaded
floods_html-0.6a4.tar.gz 37.5 kB Details

Built distribution (wheel)

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

Total release size: 57.9 kB

Release files / floods_html-0.6a4.tar.gz

Download URL floods_html-0.6a4.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
211793a6f8175460fa0a94e4d3a3258a2baba63222b341660856e281e21a679c
BLAKE2b-256 checksum
How to use checksums
d2b773e943a9d75057257a39696ebd5376eccf40a9fb36f5b27d3bdf91d11997
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.6a4-py3-none-any.whl

Download URL floods_html-0.6a4-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b382dea280892a3adcce322b5d1715fca5de1b4ae3c0ef1313018b353f58feda
BLAKE2b-256 checksum
How to use checksums
beb58c147eddbec7b2040b48a84db0c1efed825b9621c3e7af63e396f3ccd193
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