Hydra (Python)

This is what they do for LeRobot to instantiate a robot. Uses a yaml file thatgets converted into an object

Resources

from omegaconf import DictConfig, OmegaConf
import hydra
 
@hydra.main(version_base=None)
def my_app(cfg: DictConfig) -> None:
    print(OmegaConf.to_yaml(cfg))
 
if __name__ == "__main__":
    my_app()