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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gama_config-2.7.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d5f956c141a5e08bbfa96dbf760f143f3803b311950b8eea0f60c6b39b105f9d
MD5 bbe101216e2c8e643548d98868311de3
BLAKE2b-256 f25344ce19bf567f2a7c7fa007fad48f98ae0d038897b3d8fc49f9204d6c7e10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gama_config-2.7.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42a7c7d4cbc33ede0935b81db8edd37dbf3548eb5d9c284a6c0b23dada3a060f
MD5 3287d3f84d20effeebf6896771f6656e
BLAKE2b-256 6dedbebaa7c5cac4bf91084a5c74dd374202fb5913e169263c2ff46e3eb98a27

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