YAML
YAML
- Link
- https://yaml.org/
- Type
- Technology
- State
- active
- Tags
- #spec #yaml
Summary
“YAML Ain’t Markup Language”: a human-friendly data format used for config files and for frontmatter at the top of Markdown files.
References
Notes
- Indentation with spaces shows nesting. Tabs are not allowed.
- Strings can be unquoted, single-quoted (no escapes), or double-quoted (escapes like
\nwork). >folds a block into one line;|keeps line breaks.~ornullmeans no value.- Most JSON converts to YAML and back.
- Python: PyYAML loads a YAML file into a dictionary (use
yaml.safe_load).