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
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.
- If
Validate
yamlandjsondocuments.- The
json-schemacan be provided inyamlformat as well, which improves readability and writability.
- The
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
- ... as well as multiple
ytools3 can be installed from PyPI.
To install with pip:
$ python -m pip install ytools3