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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gama_config-2.6.1.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.6.1.tar.gz
Algorithm Hash digest
SHA256 dc94f29b66fc649ec8267ce895368a0b52aa43a6944378fe4d0205dc3612d0c9
MD5 ba6c63193b1e96e931a878cb4177c395
BLAKE2b-256 b003ce8183fdaca7899ba04eefb74b05d32c88bd7fb5f0ad7b9c2ffba3e1315d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gama_config-2.6.1-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.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 510829551727dc91711e0177f48246cb3b1537b17055ed68043de494630de798
MD5 d69c02bd615e0053d44ca4dcbee56343
BLAKE2b-256 869fc12b57030cbb74247bbf1556edaa2e5593e88fc628f9801a0843603388b5

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