emrichen
yq
emrichen | yq | |
---|---|---|
2 | 24 | |
103 | 2,472 | |
1.9% | - | |
4.4 | 7.7 | |
12 months ago | 6 days ago | |
Python | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
emrichen
-
Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor
Templating yaml with a text templating language like Helm's templating language is a terrible idea. Templating objects and serializing them to Yaml (with input also being Yaml) I find quite nice: https://github.com/con2/emrichen
-
docker compose in production - ideas
I was actually thinking the same thing, I'm tired of copy/pasting the compose files every time and changing but a few lines. Like a Helm template engine of sorts. I stumbled upon https://github.com/con2/emrichen some months ago for that very purpose.
yq
- Jaq – A jq clone focused on correctness, speed, and simplicity
- jq 1.7 Released
- Using XPath in 2023
-
How to troubleshoot yaml parsing error "did not find expected key"?
Install jq and yq, and wrap your commands with | yq -y ..
-
Memes are all cool and all. But this is your daily remaining that 10000! =
Confusingly there is another project called yq that does exactly what you're suggesting and it's a preprocessor that converts yaml to json and then used jq. https://github.com/kislyuk/yq
-
inhumane and error-prone
yq
-
Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor
I personally find the yq tool from https://github.com/kislyuk/yq much more useful: it has all the same options and formats as `jq` (as it's really a wrapper around jq). Rather than the `yq` in the OP here where only partial functionality exists.
- The YAML Document from Hell
-
Scraping weather info
XML data from the API can be parsed and filtered with xq. There may be multiple ways to get it; first try the yq toolset which includes it.
-
Show HN: Xq – command-line XML and HTML beautifier and content extractor
There is also yq [1], which attempts the same for yaml, toml and xml. (And confusingly also contains a binary named "xq" for querying xml, however with a different syntax)
[1] https://github.com/kislyuk/yq
What are some alternatives?
csvq - SQL-like query language for csv
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
gojq - Pure Go implementation of jq
yq - yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor
dasel - Select, put and delete data from JSON, TOML, YAML, XML and CSV files with a single tool. Supports conversion between formats and can be used as a Go package.
jq - Command-line JSON processor
jmespath.spec - JMESPath Specification
aws-cli - Universal Command Line Interface for Amazon Web Services
xmlq - filter xml in the command line with xpath
zsv - zsv+lib: tabular data swiss-army knife CLI + world's fastest (simd) CSV parser
hn-search - Hacker News Search