Missim Config
Configuration management for MISSIM, backed by fluxconf.
Config is stored in ~/.config/greenroom/missim.yml.
Install
pip install -e ./packages/missim_config
Usage
Reading config
from missim_config import config_io
config = config_io.read()
Writing config
from missim_config import config_io, MissimConfig
config = MissimConfig()
config_io.write(config)
Getting the config path
from missim_config import config_io
path = config_io.get_path()
Generating schemas
After changing the dataclasses, you can generate the schemas with:
python3 -m missim_config.generate_schemas
Migrations
Schema migrations live in missim_config/migrations/. To add a migration:
- Create a file named
N_description.py(e.g.1_add_new_field.py) - Define a
migrate(data: dict) -> dictfunction that transforms the raw config dict - The
versionfield is managed automatically by fluxconf
Metadata
Release files for missim-config 4.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| missim_config-4.3.0.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| missim_config-4.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / missim_config-4.3.0.tar.gz
| Download URL | missim_config-4.3.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd7d5c13ad57bf5918ce277ac0ae276a4a026f980664fe4b30b63ce5ed84e859
|
|
BLAKE2b-256 checksum How to use checksums |
d696cf3085f0d5217f82d26aa85a559408b1bc089f99d1e413e6b9460e5c6e2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / missim_config-4.3.0-py3-none-any.whl
| Download URL | missim_config-4.3.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14514d9dff33db2e219ab9e02cc3b2f510984de2548234b8b3fb978a22a96b74
|
|
BLAKE2b-256 checksum How to use checksums |
288ebbcf4d4f2fafda50b07840a8162d3ca056bc45174125233dcfc624773adb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|