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
    baloon

booleans?:
  - True
  - False
  - true
  - false
  - TRUE
  - FALSE
"""

And the resulting data structure:

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

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.

Source Distribution

syml-0.4.tar.gz (26.9 kB view details)

Uploaded Source

File details

Details for the file syml-0.4.tar.gz.

File metadata

  • Download URL: syml-0.4.tar.gz
  • Upload date:
  • Size: 26.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for syml-0.4.tar.gz
Algorithm Hash digest
SHA256 40e6844d8bebb8ea3cfa0fcb97236ad74f055b4d9a4dacc8ddd504e1d5bcc7cd
MD5 7450d53ec5aa51a2b74a33714e527713
BLAKE2b-256 c5b6e7b75d29f31072dd79983f72646a89e1bfa3bae8ab28efd02805fb2791f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page