Skip to content

umaumax/yaml-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml-sort

sort yaml file (even generated by opencv with bugs)

how to install

# for avoiding 'pip Installing collected packages: UNKNOWN'
pip3 install setuptools --upgrade
pip3 install https://github.com/umaumax/yaml-sort/archive/master.tar.gz

how to use

yaml-sort in.yml
yaml-sort in.yml out.yml

yaml-diff

diff -U 100 <(yaml-sort sample1.yml) <(yaml-sort sample2.yml)

TODO

  • write test code

[test.yml]

%YAML:1.0
---
set:
   - { x:1, y:2, x:[ 1, 0, 0, 1, 1, 0, 1, 1 ] }
tag:     !!hello
   cols: 3
   rows: 4
   data: [1,-2,3]
abc:     1234
date:    "Fri Jul 26 23:42:37 2019"

The Official YAML Web Site



PyYAML

pip install -U PyYAML
yaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:opencv-matrix'

CloudFormationのYAMLをPyYAMLで読み込む - GALACTIC1969 - Medium

go-yaml/yaml

下記がパースできない

%YAML:1.0

これは,opencv側のbugらしいので,その点では問題ない

abc: {x:[12,3]}

FMI

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages