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
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.9.0.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gama_config-1.9.0.tar.gz.
File metadata
- Download URL: gama_config-1.9.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58d9ff700ab6bf8b5c5e49434ae26727ca268d877e250122e2664eb3c945d08a
|
|
| MD5 |
caa34c9e4b02681998749c239c547035
|
|
| BLAKE2b-256 |
46083ae4c7e16d7637b110f10926d3f716f41bd63c17da7515588e0226862c71
|
File details
Details for the file gama_config-1.9.0-py3-none-any.whl.
File metadata
- Download URL: gama_config-1.9.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a62f9159874f1794c844035d7e29d4393f43d6064491debe749c5284046d1f55
|
|
| MD5 |
ce917b847e18139e6140909d713a28ae
|
|
| BLAKE2b-256 |
bef7ab1a354e944609f7303c7f414cd1d5cbb9779da90c3838d67b4a78455ad3
|