pyppet is a robot model format that uses Python instead of XML for better type checking, logic, scripting, and parsing.
Visualization tools included: pip install pyppet[viz]
Barebones, format only: pip install pyppet
Examples can be found at https://github.com/david-dorf/pyppet_models, as well as the basic example contained within this repository.
Tests can be run with pixi run -e viz test-all