|Version 11 (modified by xi, 7 years ago) (diff)|
Python bindings for the Syck YAML parser and emitter
YAML is a data serialization format designed for human readability and interaction with scripting languages.
PySyck is aimed to update the current Python bindings for Syck. The new bindings provide a wrapper for the Syck emitter and give access to YAML representation graphs. Hopefully it will not leak memory as well.
Projects using PySyck
If your project uses PySyck, feel free to add its URL along with a small note.
Pyramid is a simple, file based website templating system. Pyramid uses Nevow as its templating system and YAML as the format for its file based data.
PySyck requires Python 2.3 or higher and Syck 0.55 or higher.
You may download the latest Syck release from http://whytheluckystiff.net/syck/. Alternatively you download my unofficial syck tarball. It is the code from the Syck SVN repository with my SyckPatches applied.
The latest version
I prepared an unofficial syck tarball:
- the distutils script checks the presence of syck.h.
- the extension module releases GIL before calling syck.
- The treatment of the !str tag is changed. Now !str-tagged scalars are converted to Unicode strings if they are valid UTF-8, but are not valid ASCII.
- Windows binaries are compiled against syck-0.61+svn231+patches.tar.gz.
- The site is moved to http://pyyaml.org/wiki/PySyck.
>>> from syck import * >>> print load(""" ... - foo ... - bar ... - baz ... """) ['foo', 'bar', 'baz'] >>> print dump(['foo', 'bar', 'baz']) --- - foo - bar - baz
For more details, please check README.txt.
Development and Bug reports
Author and Copyright
The PySyck module is written by Kirill Simonov.
PySyck is released under the BSD license like Syck itself.