Skip to main content

fmu-settings-api

ci

fmu-settings-api is the FastAPI backend for the fmu-settings application.

Usage

This application is primarily invoked by fmu-settings-cli and is meant to be used together with fmu-settings-gui. It depends mostly on fmu-settings to work with .fmu/ configuration directories within the FMU context.

With fmu-settings-cli installed, to run the API by itself just

fmu settings api

An authorization token is required to create a session. When developing you can print this token to the the terminal with

fmu settings api --print-token

It's useful to be able to reload while developing.

fmu settings api --print-token --reload

API Documentation

The routes have documentation on them. To view them, and work with the API go to localhost:8000/docs (or whatever your port may end up being).

Configuration

Configuration should largely be handled by the GUI when they are being run together. When developing you will want to be able to access different endpoints. You can configure some of these values with .env and scripts in the scripts/ directory.

A sample.env is included here. To get your own SMDA subscription key you may go to the internal Equinor API self-service website. Copy sample.env to .env and fill in the correct values.

Access token

Accessing services through this API requires a valid access token. You can acquire one with the scripts/get_token.py script. This script will open a small server, authenticate you with SSO, and store your access token to .token. You may then use this as you need.

Developing

Clone and install into a virtual environment.

git clone git@github.com:equinor/fmu-settings-api.git
cd fmu-settings-api
# Create or source virtual/Komodo env
pip install -U pip
pip install -e ".[dev]"
# Make a feature branch for your changes
git checkout -b some-feature-branch

Run the tests with

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

If the repo is cloned from a fork, the upstream has to be set and tags fetched from there so that the package will be installed and built correctly. Without updated tags the package might be built to an outdated version.

git clone git@github.com:<username>/fmu-settings-api.git
cd fmu-settings-api
git remote add upstream git@github.com:equinor/fmu-settings-api.git
git fetch upstream --tags
pip install -e ".[dev]"

See the contributing document for more.

Metadata

Release files for fmu-settings-api 1.7.0

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

Source distribution (sdist)

Source distribution for fmu-settings-api 1.7.0
File Size Uploaded Provenance Actions
fmu_settings_api-1.7.0.tar.gz 301.1 kB With provenance Details for fmu_settings_api-1.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fmu-settings-api 1.7.0
File Interpreter ABI Platform Actions
fmu_settings_api-1.7.0-py3-none-any.whl Python 3 none any Details for fmu_settings_api-1.7.0-py3-none-any.whl

Total release size: 398.1 kB

Release files / fmu_settings_api-1.7.0.tar.gz

Download URL fmu_settings_api-1.7.0.tar.gz
Size 301.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2a3ed15bb7a89814c9dcca1f604236af1c4967df75f00db7fc85e4a2b384179b
BLAKE2b-256 checksum
How to use checksums
9d4b59ede6db23d8d04fb1bc28c4fd752631152c0576f69c088bc6bbc4d99ebe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / fmu_settings_api-1.7.0-py3-none-any.whl

Download URL fmu_settings_api-1.7.0-py3-none-any.whl
Size 97.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f61e7c9ad1d9200d4215f0bd638ca90a600082a283b556a3a1d8ffd91c6d8ab
BLAKE2b-256 checksum
How to use checksums
23ee1c92c08082ca704dbee5c65c5f21cb81b87b50eb1f8752c12babc8686449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for fmu-settings-api 1.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fmu_settings_api-1.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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