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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file yamliny-0.0.2.tar.gz
.
File metadata
- Download URL: yamliny-0.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d2b77633689f900ea1bb054121fccfa6cf840caed055345b0b8c86c5f49d5c0 |
|
MD5 | 743f7fddd60c157ce462c00d89f4ddab |
|
BLAKE2b-256 | cb288ce8141427f4a537231ea7b523a5a045ad445f8188d5cbc80f3c1125ac9e |
File details
Details for the file yamliny-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: yamliny-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb606fd58945679424bb10d5dfc675c3e3377d38b46a635d666267d065e9154d |
|
MD5 | 909ad29e28d95c0d548c8f953249cde2 |
|
BLAKE2b-256 | b51b0127b12936b8aee0a4cf3451da4e1790e596419a6137d0b2d9e913fd514e |