The cli for fmu-settings
Project description
fmu-settings-cli
fmu-settings-cli is the CLI package for fmu-settings.
Usage
To launch the application simply run
fmu-settings
To start only the API, run
fmu-settings api
It is also possible to specify the port and if the API should be reloaded, as in during development.
Starting the API only
fmu-settings api --port 8001
By default the API will set CORS rules restricting requests to a default host
and port (localhost:8000). In development with a GUI it's likely your
frontend port will be something different. You can specify this like so:
fmu-settings api --gui-port 5173
This will update the CORS rules in the API to accept requests from
localhost:5173.
The API authorizes all requests with a randomly generated token. When starting
the API for use in development this token can be printed by setting the
FMU_SETTINGS_PRINT_TOKEN environment variable or providing the --print-token
flag.
fmu-settings api --gui-port 5173 --print-token
# or
export FMU_SETTINGS_PRINT_TOKEN=true
# or
FMU_SETTINGS_PRINT_TOKEN=true fmu-settings api --gui-port 5173
It's also possible to print the full URL a user would be directed to with a similar URL flag and environment variable.
fmu-settings api --gui-port 5173 --print-url
# or
export FMU_SETTINGS_PRINT_URL=true
# or
FMU_SETTINGS_PRINT_URL=true fmu-settings api --gui-port 5173
Note that these additional flags are intended for development so they only work
with fmu-settings api subcommand.
Starting the GUI only
You can similarly start the GUI server:
fmu-settings gui
Developing
Clone and install into a virtual environment.
git clone git@github.com:equinor/fmu-settings-cli.git
cd fmu-settings-cli
# 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
See the contributing document for more.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fmu_settings_cli-0.1.0.tar.gz.
File metadata
- Download URL: fmu_settings_cli-0.1.0.tar.gz
- Upload date:
- Size: 81.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9054931e3d68882fb855b813a4d0988edcd14afcf9a0ea18d9f6595522de3cea
|
|
| MD5 |
bbd06408db07c0b4f30220555ce6f315
|
|
| BLAKE2b-256 |
f5d71095a4c76d1703ae0154929cf9375b2448f2d21c3f06cb07ed2aee50247d
|
Provenance
The following attestation bundles were made for fmu_settings_cli-0.1.0.tar.gz:
Publisher:
publish.yml on equinor/fmu-settings-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fmu_settings_cli-0.1.0.tar.gz -
Subject digest:
9054931e3d68882fb855b813a4d0988edcd14afcf9a0ea18d9f6595522de3cea - Sigstore transparency entry: 666065784
- Sigstore integration time:
-
Permalink:
equinor/fmu-settings-cli@a217874a0b9c4c5bdeb95657e104009baff75072 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/equinor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a217874a0b9c4c5bdeb95657e104009baff75072 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fmu_settings_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fmu_settings_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0ec5ea2b87df6bd2b0d9502f9c3a36cf8ca0da7175e7f0f98172fe9039e67c7
|
|
| MD5 |
139a5a58260d80ba3d5181dffebbdedc
|
|
| BLAKE2b-256 |
a4d3ceb0dcf1c26bd4b5f7c4edeac8d616e96abc3a52b19de40f0c4a38f4d82a
|
Provenance
The following attestation bundles were made for fmu_settings_cli-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on equinor/fmu-settings-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fmu_settings_cli-0.1.0-py3-none-any.whl -
Subject digest:
a0ec5ea2b87df6bd2b0d9502f9c3a36cf8ca0da7175e7f0f98172fe9039e67c7 - Sigstore transparency entry: 666065815
- Sigstore integration time:
-
Permalink:
equinor/fmu-settings-cli@a217874a0b9c4c5bdeb95657e104009baff75072 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/equinor
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a217874a0b9c4c5bdeb95657e104009baff75072 -
Trigger Event:
release
-
Statement type: