EuroPython 2016

YAML is one of the more human friendly data serialisation formats

Speaker(s) Anthon van der Neut

There are several human parsable data serialisation possibilities but there are only a handful that are human friendly. Arbitrarily human friendly means that: - you can include comments in your format to explain things to other readers - it means what you think that it means - no need to quote things that are clear without - visual nesting through indentation, not through lisp like ( (( (()()))) or <abc> </abc> - easy to edit without breaking things (trailing comma’s anyone).

YAML supports most of the above, but the “standard” YAML library would - rearrange mapping (dictionary) entries on dumping making comparison using diff difficult - drop comments when reading data to YAML, so dumping leads to data loss for humans - was not updated for YAML 1.2 published in 2009 by upgrading the standard library to deal with these issues in the increasingly often used ruamel.yaml round-trip library, in-dept knowledge was built up both on how to effectively use YAML as well on how to do some unplanned for things in YAML. Please stop by with any questions you have beginner, or advanced on how to make the use of YAML in you project not only more human-friendly, but also more developer friendly. (You’re also welcome if you don’t understand how someone can like to work with JSON)

in on Friday 22 July at 10:30 See schedule
in on Friday 22 July at 14:00 See schedule

Do you have some questions on this talk?

New comment