Skip to main content

Parser for a tiny subset of YAML; YAML lite

Project description

YAMLiny - a tiny parser for a tiny subset of YAML

YAMLiny is a parser for a tiny subset of YAML syntax, although behavior may differ slightly in certain scenarios.

Install

YAMLiny is on PyPi, install with pip.

pip install yamliny

Usage

YAMLiny currently only has parsing functionality.

import yamliny

# this is pretty much the entirety of what you can do with YAMLiny syntax at the moment
yamliny_text = """
key: value
multivalue-key: # you can also use inline comments!
    array: [one, two, three]
    key: value
""".strip()

content = yamliny.loads(yamliny_text)
# content is a dict with:
# {'key': 'value',
#  'multivalue-key': {'array': ['one', 'two', 'three'], 'key': 'value'}}

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

yamliny-0.0.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

yamliny-0.0.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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