# 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](https://pypi.org/project/gama-config/))
## Usage
### Reading config
```python
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
```python
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:
```bash
python3 -m gama_config.generate_schemas
```
## Running tests
```bash
python3 -m pytest -v ./libs/gama_config
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Greenroom-Robotics/gama",
"name": "gama-config",
"maintainer": "David Revay",
"docs_url": null,
"requires_python": null,
"maintainer_email": "david.revay@greenroomrobotics.com",
"keywords": "colcon",
"author": "Greenroom Robotics",
"author_email": "team@greenroomrobotics.com",
"download_url": "https://files.pythonhosted.org/packages/01/3e/e41c553c47934fb2f6cfeb83ae8859e7487832936c5d5db68d292ee24088/gama_config-3.5.0.tar.gz",
"platform": null,
"description": "# GAMA Config\n\nGAMA Config is used to load config stored inside the `.gama` folder.\n\n## Install\n\n* `pip install -e ./libs/gama_config`\n* or...\n* `pip install gama_config` (Public on [PyPi](https://pypi.org/project/gama-config/))\n\n## Usage\n\n### Reading config\n\n```python\nfrom gama_config.gama_vessel import read_vessel_config\nfrom gama_config.gama_gs import read_gs_config\n\nvessel_config = read_vessel_config()\ngs_config = read_gs_config()\n\n```\n\n### Writing config\n\n```python\nfrom gama_config.gama_vessel import write_vessel_config, GamaVesselConfig\nfrom gama_config.gama_gs import write_gs_config, GamaGsConfig\n\nvessel_config = GamaVesselConfig()\ngs_config = GamaGsConfig()\n\nwrite_vessel_config(vessel_config)\nwrite_gs_config(gs_config)\n\n```\n\n### Generating schemas\n\nAfter changing the dataclasses, you can generate the schemas with:\n\n```bash\npython3 -m gama_config.generate_schemas\n```\n\n## Running tests\n\n```bash\npython3 -m pytest -v ./libs/gama_config\n```\n",
"bugtrack_url": null,
"license": "Copyright (C) 2023, Greenroom Robotics",
"summary": "A library for reading / writing GAMA config files",
"version": "3.5.0",
"project_urls": {
"Homepage": "https://github.com/Greenroom-Robotics/gama"
},
"split_keywords": [
"colcon"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "38cab6612f91a92eccb63c3aad6d16ecec41b11039725f2edb72418030633a76",
"md5": "14e128710cbc75efcf1f7a590aada258",
"sha256": "81ffaca40983ad958cb8da4f05d9fd597aafd69eb870195346e580db36364baa"
},
"downloads": -1,
"filename": "gama_config-3.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "14e128710cbc75efcf1f7a590aada258",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 14166,
"upload_time": "2025-02-23T20:13:50",
"upload_time_iso_8601": "2025-02-23T20:13:50.586211Z",
"url": "https://files.pythonhosted.org/packages/38/ca/b6612f91a92eccb63c3aad6d16ecec41b11039725f2edb72418030633a76/gama_config-3.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "013ee41c553c47934fb2f6cfeb83ae8859e7487832936c5d5db68d292ee24088",
"md5": "cdd51fab2be4b6c34b9212f36d5ec09c",
"sha256": "0d0a6d3686805ad95cc31f85998ab4e0fb1bd9a217dfc174a910e1062d4a324e"
},
"downloads": -1,
"filename": "gama_config-3.5.0.tar.gz",
"has_sig": false,
"md5_digest": "cdd51fab2be4b6c34b9212f36d5ec09c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 10593,
"upload_time": "2025-02-23T20:13:52",
"upload_time_iso_8601": "2025-02-23T20:13:52.668533Z",
"url": "https://files.pythonhosted.org/packages/01/3e/e41c553c47934fb2f6cfeb83ae8859e7487832936c5d5db68d292ee24088/gama_config-3.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-23 20:13:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Greenroom-Robotics",
"github_project": "gama",
"github_not_found": true,
"lcname": "gama-config"
}