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.

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

Release files for ytools3 3.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ytools3 3.0.1
File Size Uploaded
ytools3-3.0.1.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ytools3 3.0.1
File Interpreter ABI Platform
ytools3-3.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / ytools3-3.0.1.tar.gz

Download URL ytools3-3.0.1.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
59e3fc710842ca6f6440922e4d4c7730d58a6f0afa14ca1358e468e436ec8b14
BLAKE2b-256 checksum
How to use checksums
8c3202bc7f4dc00c18dad4bd8253dc97295062d711648b8be5c529a2290bc304
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / ytools3-3.0.1-py3-none-any.whl

Download URL ytools3-3.0.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
521ec431dbe6a1cf7234c5f2145b2887e867da1fd1616215067313afecb7562d
BLAKE2b-256 checksum
How to use checksums
4b9d93261d1803e97c5ded8ca8a0f3adb5af9e3d180406c2e898bc77c1ab3a97
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

3.0.1 This release

2 release files

3.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page