JSON, YAML, TOML, XML and CSV
Text formats for config and data exchange.
Beginner
json and csv are built in; tomllib reads TOML (3.11+); PyYAML/ruamel.yaml for YAML (use safe_load); xml.etree or lxml for XML.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.