How covesa/vss-tools works
VSS Tools converts and verifies Vehicle Signal Specifications through the vspec CLI: it loads specification files and options, builds and checks a typed tree, then exports a target format. Separate commands compose self-contained snapshots and diff snapshots into structured change reports. Export formats include YAML, JSON, ROS 2, SAMM, and S2DM, alongside the documented broader exporter set. Edges follow README statements or SOURCE INDEX references; unsampled CLI dispatch and exporter wiring is left unasserted.
Main entry points: main.py Tree preparation and checks · diff.py Snapshot comparison · compose.py Snapshot composition · cli.py Command interface
Components 19
CLI workflows
- Command interface
src/vss_tools/cli.py - CLI options
src/vss_tools/cli_options.py
Specification model
- VSpec loader
src/vss_tools/vspec.py - Typed data model
src/vss_tools/model.py - Datatype rules
src/vss_tools/datatypes.py - VSS tree
src/vss_tools/tree.py - Units and quantities
src/vss_tools/units_quantities.py - Tree preparation and checks
src/vss_tools/main.py
Format exporters
- YAML exporter
src/vss_tools/exporters/yaml.py - JSON exporter
src/vss_tools/exporters/json.py - ROS 2 exporter
src/vss_tools/exporters/ros2interface.py - SAMM exporter
src/vss_tools/exporters/samm - S2DM exporter
src/vss_tools/exporters/s2dm - Other format exporters
src/vss_tools/exporters
Snapshot operations
- Snapshot composition
src/vss_tools/compose.py - Snapshot comparison
src/vss_tools/diff.py
Other components
- CLI user
- VSS specification files
- Structured change report
Connections 22
- CLI user → Command interface: runs commands
README.md - Command interface → CLI options: configures
- CLI user → VSS specification files: provides
README.md - VSS specification files → VSpec loader: loads
src/vss_tools/vspec.py - CLI options → Tree preparation and checks: configures
src/vss_tools/main.py - VSpec loader → Tree preparation and checks: supplies specs
src/vss_tools/main.py - Tree preparation and checks → VSS tree: builds
src/vss_tools/main.py - Tree preparation and checks → Typed data model: validates
src/vss_tools/main.py - Tree preparation and checks → Datatype rules: loads type rules
src/vss_tools/main.py - Tree preparation and checks → Units and quantities: loads units
src/vss_tools/main.py - CLI user → YAML exporter: requests export
README.md - CLI user → JSON exporter: requests export
README.md - CLI user → ROS 2 exporter: requests export
- CLI user → SAMM exporter: requests export
- CLI user → S2DM exporter: requests export
- CLI user → Other format exporters: requests export
README.md - YAML exporter → Tree preparation and checks: gets trees
src/vss_tools/exporters/yaml.py - CLI user → Snapshot composition: requests snapshot
README.md - Snapshot composition → Tree preparation and checks: gets trees
src/vss_tools/compose.py - CLI user → Snapshot comparison: requests comparison
README.md - Snapshot comparison → Snapshot composition: reads snapshots
src/vss_tools/diff.py - Snapshot comparison → Structured change report: produces JSON
README.md