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.6.0.tar.gz
(11.1 kB
view details)
Built Distribution
File details
Details for the file gama_config-2.6.0.tar.gz
.
File metadata
- Download URL: gama_config-2.6.0.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 | ad43a8f2228bab214d4bf5fe9ffab5e9f3afbdedf3cc697da7b49c94ce0260d5 |
|
MD5 | dd072f94e6dc4d2e2cb09843fab0aeab |
|
BLAKE2b-256 | f39e569eeece79189826698ae21d2a30a2f80677931e34c053355a8b05ba9001 |
File details
Details for the file gama_config-2.6.0-py3-none-any.whl
.
File metadata
- Download URL: gama_config-2.6.0-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 | d26048b688d6adc978cea84fbe21751b216d7a36901fff4092d1b8ea3150d1c5 |
|
MD5 | cab693f8213e8772c0f3c452a144bb5f |
|
BLAKE2b-256 | afd8af5a21dfed4d7ff17c0feaecd58b53c8ea1ab0121a1f5ad0eaa6077e4d53 |