Skip to main content

The GUI for fmu-settings

Project description

fmu-settings-gui

ci

This frontend application is part of the FMU Settings applications: The CLI application is used for starting the API server as well as the GUI (frontend) server, while the API application is the one used by the frontend. There is also an fmu-settings package which contains the business logic and models and which is used by the API. Finally, the fmu-datamodels package contains some additional models used by FMU Settings.

There are two parts to this repo:

  • The code for the React application, located in the frontend directory. This is the main application, containing the web frontend
  • The code for the Python application, located in the root and in the src directory. This serves the built and deployed React application

Python application

Doing a local pip install will attempt to build the React application behind the scenes. This requires a few dependencies (Node, pnpm, ..) that are not installable via pip. View the frontend README for instructions.

Be sure to include a verbose flag or two (pip install . -vv) if you need to observe the frontend installation output.

Developing

When developing features in the React application, there are corresponding changes in the other FMU Settings packages that the frontend application needs. It is therefore important to make sure that the other packages are used in their newest versions. Installing these packages from the package repository PyPI might not provide the newest versions, so installations should be done as editable installs. Python will then import functions from the cloned code repos.

A Python virtual environment (venv) should first be created:

python -m venv ~/venv/fmu-settings
source ~/venv/fmu-settings/bin/activate

Then, an editable install of a package can be done, with the following steps:

git clone git@github.com:equinor/fmu-settings-cli.git
cd fmu-settings-cli
pip install -e ".[dev]"

These commands clone the code repo and perform an install of the package, including any regular and development dependencies. An FMU Settings dependency will initially be installed in regular mode, so each of these packages need to be cloned and installed as editable in separate steps. The above commands need to be repeated for the rest of the packages:

  • fmu-settings-api
  • fmu-settings-gui
  • fmu-settings
  • fmu-datamodels

Tests for the Python applications are run with the following command:

pytest -n auto tests

Ensure your changes will pass the various linters before making a pull request. It is expected that all code will be typed and validated with mypy.

ruff check
ruff format --check
mypy src tests

See the contributing document for more.

React application

See the application's README file for information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fmu_settings_gui-0.2.0.tar.gz (501.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fmu_settings_gui-0.2.0-py3-none-any.whl (388.8 kB view details)

Uploaded Python 3

File details

Details for the file fmu_settings_gui-0.2.0.tar.gz.

File metadata

  • Download URL: fmu_settings_gui-0.2.0.tar.gz
  • Upload date:
  • Size: 501.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fmu_settings_gui-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8ecca94c569729d48afb64f91284638d193b847b7e8cde96bbfaa87203f68d12
MD5 2db3bc04c4423c80df2c1575624bc32a
BLAKE2b-256 e30096e8fe21e42ae0e1ac6f3d82c63ceb2630fdba12a4ce357239dc092c35dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for fmu_settings_gui-0.2.0.tar.gz:

Publisher: publish.yml on equinor/fmu-settings-gui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fmu_settings_gui-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fmu_settings_gui-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a99d5ad7dcafe96e287e577ed8b0c963c02a2bd83e8e4b1d0986a2a3f420d70
MD5 4c77aa474d872040e733da91950f7f98
BLAKE2b-256 8993a2ff8f166b5981a4a45590c69e752ce8258af7efe1fe2ae5bf3f2eafa8bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for fmu_settings_gui-0.2.0-py3-none-any.whl:

Publisher: publish.yml on equinor/fmu-settings-gui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page