Displays YAML files in a flat format using python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Markus Bergholz 430cb5141c init 1 year ago
bin init 1 year ago
ycat init 1 year ago
.gitignore Initial commit 1 year ago
LICENSE Initial commit 1 year ago
Makefile init 1 year ago
README.md init 1 year ago
setup.py init 1 year ago

README.md

Install

pip install ycat

example

~$ cat /tmp/test2.yml
---
mappings:
  templates:
  - fields:
      mapping:
        norms: false
        type: text
        fields:
          keyword:
            ignore_above: 256
            type: keyword

~$ ycat
USAGE:
        cat some.yaml | ycat
        ycat some.yaml

~$ ycat /tmp/test2.yml
.mappings.templates[0].fields.mapping.norms = False
.mappings.templates[0].fields.mapping.type = "text"
.mappings.templates[0].fields.mapping.fields.keyword.ignore_above = 256
.mappings.templates[0].fields.mapping.fields.keyword.type = "keyword"