This tutorial will teach how to work with YMAL data in Python using a PyYAML Module.
After reading this tutorial, you will learn:
- The YAML data format
- How to read and write YAML files in Python using a PyYAML Module.
- How to work with Python’s PyPYML module to serialize the data in your programs into YAML format.
- Deserialize YAML stream and convert it into Python objects
- Convert a YAML file to the other commonly used formats like JSON and XML.
Table of contents
What is YAML?
YAML acronym for Ain’t Markup Language. YAML is a human-friendly data serialization standard for all programming languages. I.e., It is widely used to store data in a serialized format.
It is in simple human-readable format makes which makes it suitable for the Configuration files.
The YAML data format is a superset of one more widely used Markup language called JSON (JavaScript Object Notation).