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 the Python 2-only ytools
( https://github.com/yaccob/ytools ) to Python 3.
Docs | |
Tests | |
PyPI | |
Activity | |
QA | |
Other |
- 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.
- If
Validate
yaml
andjson
documents.- The
json-schema
can be provided inyaml
format as well, which improves readability and writability.
- The
- 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
- ... as well as multiple
ytools3
can be installed from PyPI.
To install with pip
:
$ python -m pip install ytools3