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.7.1.tar.gz
(11.1 kB
view details)
Built Distribution
File details
Details for the file gama_config-2.7.1.tar.gz
.
File metadata
- Download URL: gama_config-2.7.1.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f17ff5841e5f126184208d18ff5fae5f1c6da1d80da03b50843c00f83dc28729 |
|
MD5 | 6491da063b34e438b381b3671a7abe34 |
|
BLAKE2b-256 | bbbdccfaab3a2c14d2391ec2659bc9cb104f774e124add7148cfa59426cd4f9d |
File details
Details for the file gama_config-2.7.1-py3-none-any.whl
.
File metadata
- Download URL: gama_config-2.7.1-py3-none-any.whl
- Upload date:
- Size: 14.4 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 | 7d343e9554c6a4bb1748fc4ee5bb6e6a46c132338601a4832831bd84e51898e3 |
|
MD5 | 857c704e8ec390488ca36a7d1d97997d |
|
BLAKE2b-256 | 24f610b1d79985b94fccce3a2c53fde40054a44b82fa6707b1f33b743081d301 |