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
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-1.10.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for gama_config-1.10.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2394546440034114f3230dd09e5a6f30d9efcad0766792a1c3722e8cf9bd88a9 |
|
MD5 | ffcc3e6e91c3c5d8a5ccbe69b2aad634 |
|
BLAKE2b-256 | c4d241dbd1b90bd7ae5f4da246ef2330910993f55b6b420b2d9ee3a0dd1ccb02 |