Skip to content

Instantly share code, notes, and snippets.

@webgtx
Last active June 1, 2024 18:18
Show Gist options
  • Select an option

  • Save webgtx/f7f858d2d28d1a36887910bc807778c8 to your computer and use it in GitHub Desktop.

Select an option

Save webgtx/f7f858d2d28d1a36887910bc807778c8 to your computer and use it in GitHub Desktop.
How to load yaml configuration files in python
# 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