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.0.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file gama_config-2.4.0.tar.gz
.
File metadata
- Download URL: gama_config-2.4.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f6f24a72043c9bb1fc30764e53b3f7a461b552805fcf9b429a023338db56c23 |
|
MD5 | 257330264aaa581bc5053268f4cbd023 |
|
BLAKE2b-256 | 4040baaeac86407feb6ecab347f6edd1e6e63ed39052b140afebbfc1cd60d6ab |
File details
Details for the file gama_config-2.4.0-py3-none-any.whl
.
File metadata
- Download URL: gama_config-2.4.0-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 | 6c95a14798505aed3fe5a933586dd7584c257d7d87cc048676e4d6fe5ac741a9 |
|
MD5 | 57b55ab536497a94fadf63c0f9f5366c |
|
BLAKE2b-256 | 7281091a04d35b3b66cd04a40d629883fd5818636c4b480b0b7ea8efdea357af |