Yet Another YAML Parser, in pure python.
Python Makefile
Switch branches/tags
Nothing to show
Clone or download
Latest commit 784830b Jan 24, 2016
Permalink
Failed to load latest commit information.
docs
pureyaml xfail tests Jan 23, 2016
submodules update Jan 22, 2016
tests cleanup Jan 23, 2016
yaml_org lint Jan 21, 2016
.editorconfig initial commit Dec 28, 2015
.gitignore ignore my personal playground files Dec 29, 2015
.gitmodules update git submodule url Jan 19, 2016
.requirements.diff use no index Jan 23, 2016
.travis.yml fix unicode decode issue Jan 13, 2016
AUTHORS.rst initial commit Dec 28, 2015
CONTRIBUTING.rst udate requirements Jan 23, 2016
HISTORY.rst basic docs Jan 24, 2016
LICENSE initial commit Dec 28, 2015
MANIFEST.in initial commit Dec 28, 2015
Makefile use no index Jan 23, 2016
README.rst basic docs Jan 24, 2016
requirements.in remove singledispatch dependency Jan 20, 2016
requirements.txt use no index Jan 23, 2016
requirements_dev.in setup multi test meta class, setup for a more complete, streamlined t… Jan 16, 2016
requirements_dev.txt use no index Jan 23, 2016
setup.cfg update setup test command Jan 13, 2016
setup.py distribute ply Jan 19, 2016
tox.ini remove PYTHONWARNINGS env variable Jan 23, 2016

README.rst

pureyaml

Latest Version Development Status Build Status Coverage Status Documentation Status

Yet another yaml parser, in pure python.

Features

Installation

At the command line either via easy_install or pip

$ pip install pureyaml
$ easy_install pureyaml

Or, if you have virtualenvwrapper installed

$ mkvirtualenv pureyaml
$ pip install pureyaml

Uninstall

$ pip uninstall pureyaml

Usage

To use pureyaml in a project

import pureyaml

>>> import pureyaml
>>> from textwrap import dedent
>>> from pprint import pprint
>>> text = dedent("""
...     marvel:
...     - iron man
...     - the hulk
...     - captain america
...     dc:
...     - batman
...     - the joker
...     - superman
... """)[1:]

>>> pprint(pureyaml.load(text))
{'dc': ['batman', 'the joker', 'superman'],
 'marvel': ['iron man', 'the hulk', 'captain america']}

>>> print(pureyaml.dump(pureyaml.load(text)))
dc:
- batman
- the joker
- superman
marvel:
- iron man
- the hulk
- captain america

Credits

Tools used in rendering this package: