Socket
Socket
Sign inDemoInstall

yamliny

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    yamliny

Parser for a tiny subset of YAML; YAML lite


Maintainers
1

Readme

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc