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
yaml
asjson
orpython
Output
json
asyaml
orpython
(provided that there are no duplicate mapping entry in thejson
source)Extract particular nodes from
yaml
andjson
files.If
yaml
is used as output format (default) the output is a validyaml
document.
Validate
yaml
andjson
documents.The
json-schema
can be provided inyaml
format as well, which improves readability and writability.
Preserve order of mapping-keys in
yaml
andjson
output.Multi-document support
Multiple input files
… as well as multiple
yaml
documents 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.