Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2013-11-13 18:03:34
Size: 900
Editor: techtonik
Comment: + YAML in Python
Revision 4 as of 2013-11-13 18:35:01
Size: 1264
Editor: techtonik
Comment: add rsonlite
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
=== YAML examples and usage in notable Python programs === === YAML examples and usage in notable Python apps ===
Line 5: Line 5:
YAML is a very feature creep language. Most packages below use its subset. YAML is a feature-overcrept language. Most packages below use its subset.
Line 10: Line 10:
 * salt - http://docs.saltstack.com/topics/tutorials/starting_states.html#default-data-yaml
Line 19: Line 20:

Unfortunately, there doesn't seem to be any Python code that parses YAML
subset - pretty much every lib uses PyYAML. But still it worth to list
honorable mentions that may be modified to build mininal parsers:

 * rsolnite - https://pypi.python.org/pypi/rsonlite/0.1.0

YAML may be the most human friendly format for structured data invented so far.

YAML examples and usage in notable Python apps

YAML is a feature-overcrept language. Most packages below use its subset.

Full YAML parsers

PyYAML - http://pyyaml.org/ - due to complexity of YAML spec, this is the only package that tried to be compliant. It is C-based.

Parsers for YAML subsets

Luckily, you may not need the full YAML spec. These libraries can parse only the sweetest parts of YAML spec that you may reuse in your configs.

Unfortunately, there doesn't seem to be any Python code that parses YAML subset - pretty much every lib uses PyYAML. But still it worth to list honorable mentions that may be modified to build mininal parsers:

YAML (last edited 2021-03-28 17:42:24 by eriky)

Unable to edit the page? See the FrontPage for instructions.