clearpathrobotics / clearpath_config

Clearpath Configuration YAML Parser
https://docs.clearpathrobotics.com/
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

Split Parsing and Config Containers #1

Closed luis-camero closed 1 year ago

luis-camero commented 1 year ago

Parsing (i.e. reading a file into a dictionary and reading that dictionary into configuration objects) is handled separately from the containers (i.e. objects that hold the configuration using appropriate python types with checks).

Parsing, including the definition of keys, read/write, and load functions are all encased in parser.py.

Common types, (like IP's and Hostnames) are in common.py.

System, Platform, Mounts, and Sensors will each have their own files.

UnitTests written in PyTest are written in a mirrored package with _test suffixes on all directories, files, classes, and functions.