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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
missim_config-4.3.0.tar.gz
(11.1 kB
view details)
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 missim_config-4.3.0.tar.gz.
File metadata
- Download URL: missim_config-4.3.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd7d5c13ad57bf5918ce277ac0ae276a4a026f980664fe4b30b63ce5ed84e859
|
|
| MD5 |
4443fc091c742d59eae2f89c5c6e59b9
|
|
| BLAKE2b-256 |
d696cf3085f0d5217f82d26aa85a559408b1bc089f99d1e413e6b9460e5c6e2f
|
File details
Details for the file missim_config-4.3.0-py3-none-any.whl.
File metadata
- Download URL: missim_config-4.3.0-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14514d9dff33db2e219ab9e02cc3b2f510984de2548234b8b3fb978a22a96b74
|
|
| MD5 |
a524abff09705dee84023c0bdef062a3
|
|
| BLAKE2b-256 |
288ebbcf4d4f2fafda50b07840a8162d3ca056bc45174125233dcfc624773adb
|