Skip to main content

Library for validating `yaml` files against schema and selectively dumping nodes from `yaml` (or `json`) documents in `yaml` or `json` format.

Project description

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

Documentation Status Docs Check Status

Tests

Travis Build Status Windows Tests Status macOS Tests Status Coverage CodeFactor Grade

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Activity

GitHub last commit GitHub commits since tagged version Maintenance

Other

License GitHub top language Requirements Status pre-commit

Features

  • Output yaml as json or python

  • Output json as yaml or python (provided that there are no duplicate mapping entry in the json source)

  • Extract particular nodes from yaml and json files.

    • If yaml is used as output format (default) the output is a valid yaml document.

  • Validate yaml and json documents.

    • The json-schema can be provided in yaml format as well, which improves readability and writability.

  • Preserve order of mapping-keys in yaml and json output.

  • Multi-document support

    • Multiple input files

      • … as well as multiple yaml documents within a file

      • … and a combination of both

Installation

ytools3 can be installed from PyPI.

To install with pip:

$ python -m pip install ytools3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ytools3-3.0.1.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

ytools3-3.0.1-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page