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.3.0.tar.gz
(9.9 kB
view hashes)
Built Distribution
Close
Hashes for gama_config-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccee16f1542d1ebac5375b3fe8e628d4241d44bf5127ab8616bca715798ed5ba |
|
MD5 | eef68fc76d7a7fd0c1dce868c664d2dc |
|
BLAKE2b-256 | 7bd8ea051f9eb8d06e4eb0eb23d83d5298712e8f0d8aa1f1a46ee9c351c382f0 |