Skip to main content

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


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.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

gama_config-2.7.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file gama_config-2.7.0.tar.gz.

File metadata

  • Download URL: gama_config-2.7.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

Hashes for gama_config-2.7.0.tar.gz
Algorithm Hash digest
SHA256 0726667f1191b1545338d5fe7e99d7d914c66c7241ec6036c01dca731c5ef117
MD5 1b66a124ca20630340d4c17a5b248e1e
BLAKE2b-256 16d3b7c26dd91bfba25f5578c124fb763be41f09377f43212839a6ab24f500eb

See more details on using hashes here.

File details

Details for the file gama_config-2.7.0-py3-none-any.whl.

File metadata

  • Download URL: gama_config-2.7.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

Hashes for gama_config-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 812aecf6e50ac12c05e46ddff4834f0c4c9f0b259b87ef70bc11d7db80035b74
MD5 4349ee4a75a7050c87e3e25735487526
BLAKE2b-256 996b246ea732db3752e05e106313ca4a5783368081ed9f75d10391ff3e8eb42f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page