Skip to content

Instantly share code, notes, and snippets.

@podhmo
Last active February 19, 2020 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save podhmo/a007969c7ee788c58fcc28ddb5c53110 to your computer and use it in GitHub Desktop.
Save podhmo/a007969c7ee788c58fcc28ddb5c53110 to your computer and use it in GitHub Desktop.
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