Last active
June 1, 2024 18:18
-
-
Save webgtx/f7f858d2d28d1a36887910bc807778c8 to your computer and use it in GitHub Desktop.
How to load yaml configuration files in python
This file contains hidden or 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
| # pip install pyyaml | |
| import yaml | |
| with open("config.yaml", "r") as f: | |
| data = yaml.safe_load(f) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment