Command line utility for list organized YAML files.
Project description
YamlTable
Documentation: https://wolfgangwazzlestrauss.github.io/yamltable
Source Code: https://github.com/wolfgangwazzlestrauss/yamltable
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
Getting Started
Installation
YamlTable can be installed for Python 3.6+ with pipx
.
pipx install yamltable
To reuse its library functions install with pip
.
pip install --user yamltable
The latest release can also be downloaded and installed from GitHub.
pip install --user https://github.com/wolfgangwazzlestrauss/yamltable/releases/latest/download/yamltable-py3-none-any.whl
Commands
YamlTable provides the following commands for working with YAML files:
list
: list dictionary key valuessearch
: search dictionaries by key and valuesort
: sort dictionaries by key and valuevalidate
: validate that dictionaries conform to the given JSON schema
Contributing
Since YamlTable is in an early development phase, it is not currently open to contributors.
License
Licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
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.1.5-py3-none-any.whl (7.0 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size yamltable-0.1.5.tar.gz (6.5 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for yamltable-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bbce58948129e9b5439ea4a508ce1d3f85e84c4d740b91d3414e6b9d603d251 |
|
MD5 | 9b5c5a129ce2da08bb2a488c59e9aff6 |
|
BLAKE2-256 | 332bead659816b52f9c443e209a4e8908de08284a8a285d03565897da1c94267 |