[ANN] PyYAML-3.07: YAML parser and emitter for Python
======================== Announcing PyYAML-3.07 ======================== A new release of PyYAML is now available: http://pyyaml.org/wiki/PyYAML Changes ======= * The emitter learned to use an optional indentation indicator for block scalars; thus scalars with leading whitespaces could now be represented in a literal or folded style. * The test suite is now included in the source distribution. To run the tests, type 'python setup.py test'. * Refactored the test suite: dropped unittest in favor of a custom test appliance. * Fixed the path resolver in the LibYAML-based dumper. * Forced an explicit document end indicator when there is a possibility of parsing ambiguity. * More setup.py improvements: the package should be usable when any combination of setuptools, Pyrex and LibYAML is installed. * Windows binary packages are statically linked against LibYAML-0.1.2. * Other minor fixes and improvements (Thank to Ingy dot Net and Andrey Somov). Resources ========= PyYAML homepage: http://pyyaml.org/wiki/PyYAML PyYAML documentation: http://pyyaml.org/wiki/PyYAMLDocumentation TAR.GZ package: http://pyyaml.org/download/pyyaml/PyYAML-3.07.tar.gz ZIP package: http://pyyaml.org/download/pyyaml/PyYAML-3.07.zip Windows installer: http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.3.exe http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.4.exe http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.5.exe http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.6.exe PyYAML SVN repository: http://svn.pyyaml.org/pyyaml Submit a bug report: http://pyyaml.org/newticket?component=pyyaml YAML homepage: http://yaml.org/ YAML-core mailing list: http://lists.sourceforge.net/lists/listinfo/yaml-core About PyYAML ============ YAML is a data serialization format designed for human readability and interaction with scripting languages. PyYAML is a YAML parser and emitter for Python. PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support, capable extension API, and sensible error messages. PyYAML supports standard YAML tags and provides Python-specific tags that allow to represent an arbitrary Python object. PyYAML is applicable for a broad range of tasks from complex configuration files to object serialization and persistance. Example =======
import yaml
yaml.load(""" ... name: PyYAML ... description: YAML parser and emitter for Python ... homepage: http://pyyaml.org/wiki/PyYAML ... keywords: [YAML, serialization, configuration, persistance, pickle] ... """) {'keywords': ['YAML', 'serialization', 'configuration', 'persistance', 'pickle'], 'homepage': 'http://pyyaml.org/wiki/PyYAML', 'description': 'YAML parser and emitter for Python', 'name': 'PyYAML'}
print yaml.dump(_) name: PyYAML homepage: http://pyyaml.org/wiki/PyYAML description: YAML parser and emitter for Python keywords: [YAML, serialization, configuration, persistance, pickle]
Copyright ========= The PyYAML module is written by Kirill Simonov <xi@resolvent.net>. PyYAML is released under the MIT license.
participants (1)
-
Kirill Simonov