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.5.0.tar.gz
(11.2 kB
view details)
Built Distribution
File details
Details for the file gama_config-2.5.0.tar.gz
.
File metadata
- Download URL: gama_config-2.5.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904cd79a0b637031ba2327bab51b9f7ceae9a1e80adf02bb72d09bf7abc79227 |
|
MD5 | 3b0fb725ae471bec3e3ec7acbbf3b478 |
|
BLAKE2b-256 | 2d9e641c648f0bfeccac5221d24743f884833d1e4456bc246763ced1b1b7e02f |
File details
Details for the file gama_config-2.5.0-py3-none-any.whl
.
File metadata
- Download URL: gama_config-2.5.0-py3-none-any.whl
- Upload date:
- Size: 14.6 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 | f0d23cb8a430516961637d04cec3fbb982cef92a7892394d87edd6b271b556fe |
|
MD5 | ccf2b3a0ee3e983ee77da9646e7268a1 |
|
BLAKE2b-256 | cb302c33222c47b7fc076e1c274f5a991d9b8f0b052c814814bd175b634f6fe4 |