Skip to main content

SYML (Simple YAML-like Markup Language) is a simple markup language with similar structure to YAML, but without all the gewgaws and folderol.

Project description

SYML (Simple YAML-like Markup Language) is a simple markup language with similar structure to YAML, but without all the gewgaws and folderol.

https://travis-ci.org/eykd/syml.svg?branch=master https://coveralls.io/repos/github/eykd/syml/badge.svg?branch=master

Example

Here’s a simple SYML document:

>>> document = """
foo:
  - bar
  - baz
  - blah
    boo

booleans?:
  - yes
  - no
  - true
  - false
  - on
  - off
"""

And the resulting data structure:

>>> import syml
>>> syml.loads(document)
OrderedDict([('foo', ['bar', 'baz', 'blah\nboo']),
             ('booleans?', ['yes', 'no', 'true', 'false', 'on', 'off'])])

All values in SYML are just plain ol’ text. But let’s face it, sometimes you really do want YAML-like booleans:

>>> import syml
>>> syml.loads(document, booleans=True)
OrderedDict([('foo', ['bar', 'baz', 'blah\nboo']),
             ('booleans?', [True, False, True, False, True, False])])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for syml, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size syml-0.2.1.tar.gz (21.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page