Last active
February 19, 2020 11:46
-
-
Save podhmo/a007969c7ee788c58fcc28ddb5c53110 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db: | |
driver: mysql | |
user: omry | |
pass: secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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