https://github.com/ngschmidt/yhs
YAML Hierarchical Search
https://github.com/ngschmidt/yhs
Last synced: about 1 year ago
JSON representation
YAML Hierarchical Search
- Host: GitHub
- URL: https://github.com/ngschmidt/yhs
- Owner: ngschmidt
- License: gpl-3.0
- Created: 2020-11-29T18:43:13.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-06T23:37:15.000Z (over 5 years ago)
- Last Synced: 2023-04-27T06:33:19.880Z (about 3 years ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# YAML Hierarchical Search
## Synopsis
Quick and easy hierarchical utility to parse YAML/JSON in a tree search, or simply validate inputs
## To use these examples
### Ideal Usage
`| yhs`
### Actual Usage
`yhs.py example.yml`
`yhs.py "yaml"`
## Goals
- Quick and dirty YAML Structure Validation
- Accept either file handles or a string
- Accept as a pipe
- Search top level tree members for a string, then return the tree below it
- Search a provided depth tree members for a stirng, then return the tree below it
- Search arbitrary depths for a string, then return the tree below it
## Testing
TBD
### Dependencies
- Python 3
- `python3-ruamel.yaml`
## TODO
- Moved to project board
## Authors
- *Nick Schmidt*