Read-only mirror of https://github.com/MeteoSwiss/fdb-utils — MeteoSwiss. Issues & pull requests at the source.
  • Python 98.8%
  • Dockerfile 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Christian Kanesan 880155beef
Merge pull request #43 from MeteoSwiss/version-1.5.9
Bump version from 1.5.4 to 1.5.9
2026-07-07 11:26:13 +02:00
doc Initial Commit (#1) 2024-06-28 14:10:55 +02:00
fdb_utils fix report failure 2026-04-16 10:58:10 +02:00
jenkins Revert "Update UENV_VERSION to fdb/5.18:v2" (#34) 2025-12-11 16:56:51 +01:00
test Merge pull request #39 from MeteoSwiss/remove-failed-files 2026-04-10 16:50:23 +02:00
.gitignore Do not download the eccodes binary with the pypi library. The 2.37.0 binary is incompatible with our system. 2024-12-03 10:02:33 +01:00
.mch-ci.yml integrate mchbuild (#32) 2025-12-10 14:28:05 +01:00
.python-version Add FDB utilities (#2) 2024-07-08 14:40:54 +02:00
Dockerfile Merge branch 'main' into feature/use-FDB5_DIR 2025-12-16 17:34:48 +01:00
HISTORY.rst Initial Commit (#1) 2024-06-28 14:10:55 +02:00
Jenkinsfile integrate mchbuild (#32) 2025-12-10 14:28:05 +01:00
LICENSE Initial Commit (#1) 2024-06-28 14:10:55 +02:00
poetry.lock update lock file 2025-12-12 10:33:11 +01:00
pyproject.toml Bump version from 1.5.4 to 1.5.9 2026-07-06 16:44:29 +02:00
README.rst set FDB5_DIR in Dockerfile, README, and fdb-wipe test 2025-12-16 17:09:04 +01:00
sonar-project.properties Initial Commit (#1) 2024-06-28 14:10:55 +02:00

fdb-utils
###########

Python library for users and admins of `FDB <https://github.com/ecmwf/fdb>`_.


Installation
--------------

Dependencies
============================
FDB Utils depends on the FDB and Eccodes libraries, these are not installed with pip. The following environment variables need to be set:

.. code-block:: console

    export FDB5_CONFIG_FILE=<path/to/fdb-config.yaml>
    export FDB5_DIR=<path/to/fdb/home>
    export ECCODES_HOME=<path/to/eccodes/home>

See `MeteoSwiss Confluence <https://meteoswiss.atlassian.net/wiki/x/gY_XC>`_ for the environment variables to use for MeteoSwiss's realtime FDB (at CSCS).

Install the package from PyPI (MeteoSwiss Nexus, see `how to setup Nexus PyPI access from CSCS <https://meteoswiss.atlassian.net/wiki/x/XogHAQ>`_)

.. code-block:: console

    pip install fdb-utils

.. code-block:: console

    fdb-utils --help


Development
--------------------


Setup virtual environment

.. code-block:: console

    cd fdb-utils
    poetry install


Run tests

.. code-block:: console

    poetry run pytest

Run tests within the uenv

.. code-block:: console

    uenv start --view=realtime fdb/5.18:<latest_version>
    poetry install
    poetry run pytest

Generate documentation

.. code-block:: console

    poetry run sphinx-build doc doc/_build

Then open the index.html file generated in *fdb-utils/build/_build/*

Build wheels

.. code-block:: console

    poetry build