A library for reading / writing GAMA config files
Project description
GAMA Config
GAMA Config is used to load config stored inside the .gama
folder.
Install
pip install -e ./libs/gama_config
- or...
pip install gama_config
(Public on PyPi)
Usage
Reading config
from gama_config.gama_vessel import read_vessel_config
from gama_config.gama_gs import read_gs_config
vessel_config = read_vessel_config()
gs_config = read_gs_config()
Writing config
from gama_config.gama_vessel import write_vessel_config, GamaVesselConfig
from gama_config.gama_gs import write_gs_config, GamaGsConfig
vessel_config = GamaVesselConfig()
gs_config = GamaGsConfig()
write_vessel_config(vessel_config)
write_gs_config(gs_config)
Generating schemas
After changing the dataclasses, you can generate the schemas with:
python3 -m gama_config.generate_schemas
Running tests
python3 -m pytest -v ./libs/gama_config
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
gama_config-2.4.1.tar.gz
(11.0 kB
view details)
Built Distribution
File details
Details for the file gama_config-2.4.1.tar.gz
.
File metadata
- Download URL: gama_config-2.4.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dbfb6ef0c6a388a48cc3c142cf63cf44758544f8acf2a9408ff682bfadcbe75b |
|
MD5 | fd11b45b0d961596532e9e4e4453480b |
|
BLAKE2b-256 | ea5ea732af5174c492fad983d3a5ed55f9a18b8600556c145a85f842e9775a86 |
File details
Details for the file gama_config-2.4.1-py3-none-any.whl
.
File metadata
- Download URL: gama_config-2.4.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17eb6bf10b98bd15e2b31bda9c6b331017f193de40ce88d6c6bd40183adcf8f8 |
|
MD5 | f06a9c0145536c96b8c063c0cbae3388 |
|
BLAKE2b-256 | 3b2b403341df5edf3f7f24cee71dd890180eca29db65d694a54098a8e4384f8c |