🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

yamliny

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yamliny

Parser for a tiny subset of YAML; YAML lite

0.0.2
PyPI
Maintainers
1

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'}}

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts