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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ytools3-3.0.1.tar.gz.

File metadata

  • Download URL: ytools3-3.0.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.7

File hashes

Hashes for ytools3-3.0.1.tar.gz
Algorithm Hash digest
SHA256 59e3fc710842ca6f6440922e4d4c7730d58a6f0afa14ca1358e468e436ec8b14
MD5 59bc346093f25b9c0c98e250610a557a
BLAKE2b-256 8c3202bc7f4dc00c18dad4bd8253dc97295062d711648b8be5c529a2290bc304

See more details on using hashes here.

File details

Details for the file ytools3-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: ytools3-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.7

File hashes

Hashes for ytools3-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 521ec431dbe6a1cf7234c5f2145b2887e867da1fd1616215067313afecb7562d
MD5 901cbff60c91520511abb0c8506282f5
BLAKE2b-256 4b9d93261d1803e97c5ded8ca8a0f3adb5af9e3d180406c2e898bc77c1ab3a97

See more details on using hashes here.

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