Read/Write YAML files with as little code as possible

Edit Package perl-YAML-Tiny
http://search.cpan.org/dist/YAML-Tiny

*YAML::Tiny* is a perl class for reading and writing YAML-style files,
written with as little code as possible, reducing load time and memory
overhead.

Most of the time it is accepted that Perl applications use a lot of memory
and modules. The *::Tiny* family of modules is specifically intended to
provide an ultralight and zero-dependency alternative to many more-thorough
standard modules.

This module is primarily for reading human-written files (like simple
config files) and generating very simple human-readable files. Note that I
said *human-readable* and not *geek-readable*. The sort of files that your
average manager or secretary should be able to look at and make sense of.

the YAML::Tiny manpage does not generate comments, it won't necesarily
preserve the order of your hashes, and it will normalise if reading in and
writing out again.

It only supports a very basic subset of the full YAML specification.

Usage is targetted at files like Perl's META.yml, for which a small and
easily-embeddable module is extremely attractive.

Features will only be added if they are human readable, and can be written
in a few lines of code. Please don't be offended if your request is
refused. Someone has to draw the line, and for YAML::Tiny that someone is
me.

If you need something with more power move up to the YAML manpage (4
megabytes of memory overhead) or the YAML::Syck manpage (275k, but requires
libsyck and a C compiler).

To restate, the YAML::Tiny manpage does *not* preserve your comments,
whitespace, or the order of your YAML data. But it should round-trip from
Perl structure to file and back again just fine.

Refresh
Refresh
Source Files
Filename Size Changed
YAML-Tiny-1.50.tar.gz 0000042411 41.4 KB
perl-YAML-Tiny.changes 0000001995 1.95 KB
perl-YAML-Tiny.spec 0000003500 3.42 KB
Revision 4 (latest revision is 18)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 92391 from Stephan Kulow's avatar Stephan Kulow (coolo) (revision 4)
- update to 1.50
    - Major bug fix, all code that writes arbitrary data should upgrade.
    - Simple scalars with no whitespace but ending in a colon like ABC: were
      not being quoted, which results in the parser confusing it with a
      mapping key and crashing.
  
    - No functional changes.
    - Don't depend on the YAML modules in RELEASE_TESTING, as it can
      pollute the advisory META.yml.
Comments 0
openSUSE Build Service is sponsored by