data file auto-parsing
Thilo Ernst
te0006 at web.de
Tue Mar 11 12:32:22 EST 2003
"Hilbert" <hilbert at microsoft.com> wrote in message news:<v6dtoh8c1m8333 at corp.supernews.com>...
> Hello,
>
> Is there a parser that would convert python-like
> indented data files into data structures? Like:
> [...]
>
> Am I crazy?
> Thanks,
> Hilbert
YAML, www.yaml.org, should come pretty close to what you are looking
for.
There is a pure Python implementation available, but also a C
extension with bindings not only for Python, but also for Ruby
and PHP. Native implementations are available or underway for
Perl and Java, too.
See http://wiki.yaml.org/yamlwiki/YamlImplementations .
Looks like a nice human-readable and -writable (more so than XML-based
formats) cross-language data representation; something to keep an eye
upon.
Regards, Thilo Ernst
More information about the Python-list
mailing list