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.
- 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
-
Installation
ytools3
can be installed from PyPI.
To install with pip
:
$ python -m pip install ytools3