ytools3¶
Library for validating `yaml` files against schema and selectively dumping nodes from `yaml` (or `json`) documents in `yaml` or `json` format.
This is a port of ytools (https://github.com/yaccob/ytools ), which was Python 2 only, to Python 3.
Docs |
|
|---|---|
Tests |
|
PyPI |
|
Activity |
|
Other |
Features¶
Output
yamlasjsonorpythonOutput
jsonasyamlorpython(provided that there are no duplicate mapping entry in thejsonsource)Extract particular nodes from
yamlandjsonfiles.If
yamlis used as output format (default) the output is a validyamldocument.
Validate
yamlandjsondocuments.The
json-schemacan be provided inyamlformat as well, which improves readability and writability.
Preserve order of mapping-keys in
yamlandjsonoutput.Multi-document support
Multiple input files
… as well as multiple
yamldocuments within a file… and a combination of both
Installation¶
python3 -m pip install ytools3 --user
python3 -m pip install git+https://github.com/domdfcoding/ytools3@master --user
Documentation
View the Function Index or browse the Source Code.