Command line utility for list organized YAML files.
YamlTable is a Python command line utility for working with YAML files organized similar to a relational database table. It supports YAML files organized as a list of dictionaries, which share key names and value types. YamlTable provides commands for listing, searching, sorting, etc. data from the supported files.
Supported YAML File Organizations
YamlTable works with YAML files organized as a list of dictionaries with similar key names and value types.
- name: awscli description: Amazon Web Services command line client website: https://aws.amazon.com/ - name: glances description: operating system monitoring interface website: https://github.com/nicolargo/glances
The JSON schema support is included for YAML files organized as:
schema: $schema: http://json-schema.org/draft-07/schema# description: pipx package metadata schema type: object properties: name: type: string pattern: "^[\\w-]+$" description: type: string website: type: string required: - name - description - website additionalProperties: false rows: - name: awscli description: Amazon Web Services command line client website: https://aws.amazon.com/ - name: glances description: operating system monitoring interface website: https://github.com/nicolargo/glances
YamlTable can be installed for Python 3.7+ with
pipx install yamltable
To reuse its library functions install with
pip install --user yamltable
YamlTable provides the following commands for working with YAML files:
list: list dictionary key values
search: search dictionaries by key and value
sort: sort dictionaries by key and value
validate: validate that dictionaries conform to the given JSON schema
Since YamlTable is in an early development phase, it is not currently open to contributors.
Licensed under the MIT license.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size yamltable-0.0.4-py3-none-any.whl (5.6 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size yamltable-0.0.4.tar.gz (5.0 kB)||File type Source||Python version None||Upload date||Hashes View hashes|
Hashes for yamltable-0.0.4-py3-none-any.whl