| [160] | 1 | From: Kirill Simonov <xi@gamma.dn.ua> |
|---|
| 2 | To: python-list@python.org, python-announce@python.org, yaml-core@lists.sourceforge.net |
|---|
| [326] | 3 | Subject: [ANN] PyYAML-3.07: YAML parser and emitter for Python |
|---|
| [160] | 4 | |
|---|
| [165] | 5 | ======================== |
|---|
| [326] | 6 | Announcing PyYAML-3.07 |
|---|
| [165] | 7 | ======================== |
|---|
| [160] | 8 | |
|---|
| [326] | 9 | A new release of PyYAML is now available: |
|---|
| [165] | 10 | |
|---|
| 11 | http://pyyaml.org/wiki/PyYAML |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | Changes |
|---|
| 15 | ======= |
|---|
| 16 | |
|---|
| [326] | 17 | * The emitter learned to use an optional indentation indicator |
|---|
| 18 | for block scalar; thus scalars with leading whitespaces |
|---|
| 19 | could now be represented in a literal or folded style. |
|---|
| 20 | * The test suite is now included in the source distribution. |
|---|
| 21 | To run the tests, type 'python setup.py test'. |
|---|
| 22 | * Refactored the test suite: dropped unittest in favor of |
|---|
| 23 | a custom test appliance. |
|---|
| 24 | * Fixed the path resolver in the LibYAML-based dumper. |
|---|
| 25 | * Forced an explicit document end indicator when there is |
|---|
| 26 | a possibility of parsing ambiguity. |
|---|
| 27 | * More setup.py improvements: the package should be usable |
|---|
| 28 | when any combination of setuptools, Pyrex and LibYAML |
|---|
| 29 | is installed. |
|---|
| 30 | * Windows binary packages are built against LibYAML-0.1.2. |
|---|
| 31 | * Other minor fixes and improvements (Thank to Ingy dot Net |
|---|
| 32 | and Andrey Somov). |
|---|
| [165] | 33 | |
|---|
| 34 | |
|---|
| 35 | Resources |
|---|
| 36 | ========= |
|---|
| 37 | |
|---|
| 38 | PyYAML homepage: http://pyyaml.org/wiki/PyYAML |
|---|
| 39 | PyYAML documentation: http://pyyaml.org/wiki/PyYAMLDocumentation |
|---|
| 40 | |
|---|
| [326] | 41 | TAR.GZ package: http://pyyaml.org/download/pyyaml/PyYAML-3.07.tar.gz |
|---|
| 42 | ZIP package: http://pyyaml.org/download/pyyaml/PyYAML-3.07.zip |
|---|
| [231] | 43 | Windows installer: |
|---|
| [326] | 44 | http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.3.exe |
|---|
| 45 | http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.4.exe |
|---|
| 46 | http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.5.exe |
|---|
| 47 | http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.6.exe |
|---|
| [165] | 48 | |
|---|
| 49 | PyYAML SVN repository: http://svn.pyyaml.org/pyyaml |
|---|
| 50 | Submit a bug report: http://pyyaml.org/newticket?component=pyyaml |
|---|
| 51 | |
|---|
| 52 | YAML homepage: http://yaml.org/ |
|---|
| 53 | YAML-core mailing list: http://lists.sourceforge.net/lists/listinfo/yaml-core |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | About PyYAML |
|---|
| 57 | ============ |
|---|
| 58 | |
|---|
| [160] | 59 | YAML is a data serialization format designed for human readability and |
|---|
| 60 | interaction with scripting languages. PyYAML is a YAML parser and |
|---|
| 61 | emitter for Python. |
|---|
| 62 | |
|---|
| 63 | PyYAML features a complete YAML 1.1 parser, Unicode support, pickle |
|---|
| 64 | support, capable extension API, and sensible error messages. PyYAML |
|---|
| 65 | supports standard YAML tags and provides Python-specific tags that allow |
|---|
| 66 | to represent an arbitrary Python object. |
|---|
| 67 | |
|---|
| 68 | PyYAML is applicable for a broad range of tasks from complex |
|---|
| 69 | configuration files to object serialization and persistance. |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | Example |
|---|
| 73 | ======= |
|---|
| 74 | |
|---|
| 75 | >>> import yaml |
|---|
| [253] | 76 | |
|---|
| 77 | >>> yaml.load(""" |
|---|
| 78 | ... name: PyYAML |
|---|
| 79 | ... description: YAML parser and emitter for Python |
|---|
| 80 | ... homepage: http://pyyaml.org/wiki/PyYAML |
|---|
| 81 | ... keywords: [YAML, serialization, configuration, persistance, pickle] |
|---|
| [160] | 82 | ... """) |
|---|
| [253] | 83 | {'keywords': ['YAML', 'serialization', 'configuration', 'persistance', |
|---|
| 84 | 'pickle'], 'homepage': 'http://pyyaml.org/wiki/PyYAML', 'description': |
|---|
| 85 | 'YAML parser and emitter for Python', 'name': 'PyYAML'} |
|---|
| [160] | 86 | |
|---|
| [253] | 87 | >>> print yaml.dump(_) |
|---|
| 88 | name: PyYAML |
|---|
| 89 | homepage: http://pyyaml.org/wiki/PyYAML |
|---|
| 90 | description: YAML parser and emitter for Python |
|---|
| 91 | keywords: [YAML, serialization, configuration, persistance, pickle] |
|---|
| [160] | 92 | |
|---|
| [253] | 93 | |
|---|
| [160] | 94 | Copyright |
|---|
| 95 | ========= |
|---|
| 96 | |
|---|
| 97 | The PyYAML module is written by Kirill Simonov <xi@resolvent.net>. |
|---|
| 98 | |
|---|
| 99 | PyYAML is released under the MIT license. |
|---|
| 100 | |
|---|