{"id":28320954,"url":"https://github.com/umaumax/yaml-sort","last_synced_at":"2026-04-29T22:02:57.926Z","repository":{"id":154771590,"uuid":"199868233","full_name":"umaumax/yaml-sort","owner":"umaumax","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-03T07:20:11.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T13:49:13.011Z","etag":null,"topics":["diff","python","sort","yaml"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/umaumax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-07-31T14:05:21.000Z","updated_at":"2019-11-03T07:20:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"8871a4d3-86c8-4eb7-8ee6-9527e233aa57","html_url":"https://github.com/umaumax/yaml-sort","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umaumax/yaml-sort","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fyaml-sort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fyaml-sort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fyaml-sort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fyaml-sort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umaumax","download_url":"https://codeload.github.com/umaumax/yaml-sort/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umaumax%2Fyaml-sort/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diff","python","sort","yaml"],"created_at":"2025-05-25T12:12:48.266Z","updated_at":"2026-04-29T22:02:57.920Z","avatar_url":"https://github.com/umaumax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yaml-sort\n\nsort yaml file (even generated by opencv with bugs)\n\n## how to install\n```\n# for avoiding 'pip Installing collected packages: UNKNOWN'\npip3 install setuptools --upgrade\npip3 install https://github.com/umaumax/yaml-sort/archive/master.tar.gz\n```\n\n## how to use\n```\nyaml-sort in.yml\nyaml-sort in.yml out.yml\n```\n\n### yaml-diff\n```\ndiff -U 100 \u003c(yaml-sort sample1.yml) \u003c(yaml-sort sample2.yml)\n```\n\n## TODO\n* write test code\n\n----\n\n[test.yml]\n```\n%YAML:1.0\n---\nset:\n   - { x:1, y:2, x:[ 1, 0, 0, 1, 1, 0, 1, 1 ] }\ntag:     !!hello\n   cols: 3\n   rows: 4\n   data: [1,-2,3]\nabc:     1234\ndate:    \"Fri Jul 26 23:42:37 2019\"\n```\n\n* `%YAML:x.x`: version\n* `---`: データ区切り\n  * [YAML Ain’t Markup Language \\(YAML™\\) Version 1\\.2]( https://yaml.org/spec/1.2/spec.html#id2760395 )\n* `!!xxx`: tag\n  * [YAML Ain’t Markup Language \\(YAML™\\) Version 1\\.2]( https://yaml.org/spec/1.2/spec.html#id2761292 )\n    * see: `Secondary Handle`\n\n[The Official YAML Web Site]( https://yaml.org/ )\n\n----\n\n* `%YAML:1.0`: これは正しくは`%YAML 1.0`\n  * [YAML Ain’t Markup Language \\(YAML™\\) Version 1\\.2]( https://yaml.org/spec/1.2/spec.html#id2760395 )\n    * `%YAML`で検索すると正しい例がヒットする(ただし，このフォーマットが正式かどうかについての定義は見つからず)\n\n* [How to skip lines when reading a yaml file in python? \\- Stack Overflow]( https://stackoverflow.com/questions/28058902/how-to-skip-lines-when-reading-a-yaml-file-in-python )\n  * 非常に参考になる\n* [pyyaml \\- yaml\\.scanner\\.ScannerError: while scanning a directive \\- Stack Overflow]( https://stackoverflow.com/questions/15571137/yaml-scanner-scannererror-while-scanning-a-directive )\n* [How do I load an OpenCV generated yaml file in python? \\- OpenCV Q\u0026A Forum]( https://answers.opencv.org/question/31207/how-do-i-load-an-opencv-generated-yaml-file-in-python/ )\n\n----\n\n## PyYAML\n```\npip install -U PyYAML\n```\n\n```\nyaml.constructor.ConstructorError: could not determine a constructor for the tag 'tag:yaml.org,2002:opencv-matrix'\n```\n[CloudFormationのYAMLをPyYAMLで読み込む \\- GALACTIC1969 \\- Medium]( https://medium.com/galactic1969/cloudformation%E3%81%AEyaml%E3%82%92pyyaml%E3%81%A7%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%82%80-eafd5f41bf3c )\n\n## go-yaml/yaml\n下記がパースできない\n\n```\n%YAML:1.0\n```\nこれは，opencv側のbugらしいので，その点では問題ない\n\n```\nabc: {x:[12,3]}\n```\n\n----\n\n## FMI\n* for pip packaging [umaumax/gtrans]( https://github.com/umaumax/gtrans )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumaumax%2Fyaml-sort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumaumax%2Fyaml-sort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumaumax%2Fyaml-sort/lists"}