yq
csvq
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.
yq
-
Show HN: Flatito, grep for YAML and JSON files
What I often use to just get the full key paths is yq (https://github.com/mikefarah/yq), piping into grep when necessary
yq -o=props
- K8s Service Meshes: The Bill Comes Due
- Using facts and the GitHub API in Ansible
- FLaNK 25 December 2023
-
Command line tools I always install on Ubuntu servers
For more information about this command visit https://github.com/mikefarah/yq
-
Runtime error with plugin that uses io.popen to run executable during plugin startup
I've been trying to install and config a plugin (papis.nvim) for a couple of days and am having issues with a function that uses io.popen to run yq to convert yaml files to json. I know my install of yq is fine- I can run yq -oj info.yaml from the command line with no issue and it produces the correct json output. I know the function can find the yq executable, but it returns nil. I've saved the error from the yq golang code: panic: runtime error: invalid memory address or nil pointer dereference
-
Jaq – A jq clone focused on correctness, speed, and simplicity
- yq has no if-then-else https://github.com/mikefarah/yq/issues/95 which is a poor design (or omission) in my opinion
-
HTTPie Desktop: cross-platform API testing client for humans
After which, I use openapi-generator to make a yaml output.
https://gist.github.com/freshteapot/3637e8d2b5ecdf01b7d25246...
- yq version 3.4.1 (Worth noting, the example uses an out of date yq, so a few modifictaions might be needed)
https://github.com/mikefarah/yq
-
jq 1.7
For those pining for a similar yaml query tool for working through acres of config: https://github.com/mikefarah/yq
jq is awesome and thanks to the new team for their recent efforts and energy, it massively appreciated.
-
That's a Lot of YAML
For anyone looking for such a script, there's some CLIs that make it easy. One is `yq -o props` [1], another way is to use `yq -j` or `yj` [2] to convert to JSON and pipe it to `gron` [3].
[1] https://github.com/mikefarah/yq
[2] https://github.com/sclevine/yj
[3] https://github.com/tomnomnom/gron
csvq
-
Fx – Terminal JSON Viewer
sure can do, if you already use that shell [1], but personally I like specific tools for specific jobs such as jq [2], fx, csvq [3] etc, there's value in decoupling shells from utils (modularity, speed, innovation etc).
[1] I don't but tempted to try, like its data-types concept
[2] https://jqlang.github.io/jq/
[3] https://github.com/mithrandie/csvq
-
Tool to interact with CSV
csvq
-
Can SQL be used without an RDBMS?
There is a way of running SQL-like queries against CSV files.
-
Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor
Lately I have had to do a lot of flat file analysis and tools along these lines have been a godsend. Will check this out.
My go to lately has been csvq (https://mithrandie.github.io/csvq/). Really nice to be able run complicated selects right over a CSV file with no setup at all.
-
Wie fusioniert man CSV tables?
csvq (https://mithrandie.github.io/csvq/)
-
Tool to explore big data sets
I usually do this with awk, my largest target files being half a TB in size for a project last year (and far too large to hold entirely in RAM). There are some other utilities like csvq and csvsql both of which let you write SQL-style queries against CSV files, but I'm not sure how they perform on large files. There's a nice list of CSV manipulation tools too if any of those jog your memory.
-
sqly - execute SQL against CSV / JSON with shell
Apparently, there were many who thought the same thing; Tools to execute SQL against CSV were trdsql, q, csvq, TextQL. They were highly functional, hoewver, had many options and no input completion. I found it just a little difficult to use.
- One-liner for running queries against CSV files with SQLite
-
Most efficient way to query .CSV files for Mac?
Please check out this tool https://github.com/mithrandie/csvq
-
Looking for: library to turn SQL (or abstracted) to code & execute against custom backend (slice of structs)
If you are looking to query nondb data with sql statements then you may want to check something like https://github.com/mithrandie/csvq (SQL for csv).
What are some alternatives?
yq - Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
querycsv - QueryCSV enables you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to a CSV file
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
q - q - Run SQL directly on delimited files and multi-file sqlite databases
yaml.nvim - 🍒 YAML toolkit for Neovim users
oq - A performant, and portable jq wrapper to facilitate the consumption and output of formats other than JSON; using jq filters to transform the data.
miller - Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
duckdb - DuckDB is an in-process SQL OLAP Database Management System
jmespath.py - JMESPath is a query language for JSON.
gsheet - gsheet is a CLI tool (and Golang package) for piping csv data to and from Google Sheets