Skip to content

Instantly share code, notes, and snippets.

@podhmo
Last active Feb 19, 2020
Embed
What would you like to do?
db:
driver: mysql
user: omry
pass: secret
import hydra
from omegaconf import DictConfig
# pip install hydra-core
# see: https://hydra.cc/docs/tutorial/simple_cli
@hydra.main(config_path="config.yaml")
def my_app(cfg: DictConfig) -> None:
print(cfg.pretty())
if __name__ == "__main__":
my_app()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment