| 1 |
From: Kirill Simonov <xi@gamma.dn.ua> |
|---|
| 2 |
To: python-list@python.org, python-announce@python.org, yaml-core@lists.sourceforge.net |
|---|
| 3 |
Subject: [ANN] PyYAML-3.02: YAML parser and emitter for Python |
|---|
| 4 |
|
|---|
| 5 |
======================== |
|---|
| 6 |
Announcing PyYAML-3.02 |
|---|
| 7 |
======================== |
|---|
| 8 |
|
|---|
| 9 |
A new bug-fix release of PyYAML is now available: |
|---|
| 10 |
|
|---|
| 11 |
http://pyyaml.org/wiki/PyYAML |
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
Changes |
|---|
| 15 |
======= |
|---|
| 16 |
|
|---|
| 17 |
* Fix win32 installer. Apparently bdist_wininst does not work under Linux. |
|---|
| 18 |
* Fix a bug in add_path_resolver. |
|---|
| 19 |
* Add the yaml_hl example. Try to run on a color terminal: |
|---|
| 20 |
`python yaml_hl.py <any_document.yaml` |
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
Resources |
|---|
| 24 |
========= |
|---|
| 25 |
|
|---|
| 26 |
PyYAML homepage: http://pyyaml.org/wiki/PyYAML |
|---|
| 27 |
PyYAML documentation: http://pyyaml.org/wiki/PyYAMLDocumentation |
|---|
| 28 |
|
|---|
| 29 |
TAR.GZ package: http://pyyaml.org/download/pyyaml/PyYAML-3.02.tar.gz |
|---|
| 30 |
ZIP package: http://pyyaml.org/download/pyyaml/PyYAML-3.02.zip |
|---|
| 31 |
Windows installer: http://pyyaml.org/download/pyyaml/PyYAML-3.02.win32.exe |
|---|
| 32 |
|
|---|
| 33 |
PyYAML SVN repository: http://svn.pyyaml.org/pyyaml |
|---|
| 34 |
Submit a bug report: http://pyyaml.org/newticket?component=pyyaml |
|---|
| 35 |
|
|---|
| 36 |
YAML homepage: http://yaml.org/ |
|---|
| 37 |
YAML-core mailing list: http://lists.sourceforge.net/lists/listinfo/yaml-core |
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
About PyYAML |
|---|
| 41 |
============ |
|---|
| 42 |
|
|---|
| 43 |
YAML is a data serialization format designed for human readability and |
|---|
| 44 |
interaction with scripting languages. PyYAML is a YAML parser and |
|---|
| 45 |
emitter for Python. |
|---|
| 46 |
|
|---|
| 47 |
PyYAML features a complete YAML 1.1 parser, Unicode support, pickle |
|---|
| 48 |
support, capable extension API, and sensible error messages. PyYAML |
|---|
| 49 |
supports standard YAML tags and provides Python-specific tags that allow |
|---|
| 50 |
to represent an arbitrary Python object. |
|---|
| 51 |
|
|---|
| 52 |
PyYAML is applicable for a broad range of tasks from complex |
|---|
| 53 |
configuration files to object serialization and persistance. |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
Example |
|---|
| 57 |
======= |
|---|
| 58 |
|
|---|
| 59 |
>>> import yaml |
|---|
| 60 |
|
|---|
| 61 |
>>> yaml.load(""" |
|---|
| 62 |
... name: PyYAML |
|---|
| 63 |
... description: YAML parser and emitter for Python |
|---|
| 64 |
... homepage: http://pyyaml.org/wiki/PyYAML |
|---|
| 65 |
... keywords: [YAML, serialization, configuration, persistance, pickle] |
|---|
| 66 |
... """) |
|---|
| 67 |
{'keywords': ['YAML', 'serialization', 'configuration', 'persistance', |
|---|
| 68 |
'pickle'], 'homepage': 'http://pyyaml.org/wiki/PyYAML', 'description': |
|---|
| 69 |
'YAML parser and emitter for Python', 'name': 'PyYAML'} |
|---|
| 70 |
|
|---|
| 71 |
>>> print yaml.dump(_) |
|---|
| 72 |
name: PyYAML |
|---|
| 73 |
homepage: http://pyyaml.org/wiki/PyYAML |
|---|
| 74 |
description: YAML parser and emitter for Python |
|---|
| 75 |
keywords: [YAML, serialization, configuration, persistance, pickle] |
|---|
| 76 |
|
|---|
| 77 |
|
|---|
| 78 |
Copyright |
|---|
| 79 |
========= |
|---|
| 80 |
|
|---|
| 81 |
The PyYAML module is written by Kirill Simonov <xi@resolvent.net>. |
|---|
| 82 |
|
|---|
| 83 |
PyYAML is released under the MIT license. |
|---|
| 84 |
|
|---|