Yq is a portable yq: command-line YAML, JSON, XML, CSV and properties processor

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Scout Monitoring - Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • yq

    yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor

  • advent-of-code-jq

    Solving Advent of Code with jq

  • User odnoletkov[1] has solved five years’ worth of Advent of Code in jq:

    https://github.com/odnoletkov/advent-of-code-jq

    [1] https://news.ycombinator.com/user?id=odnoletkov

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • htmlq

    Like jq, but for HTML.

  • gojq

    Pure Go implementation of jq

  • I use gojq with --yaml-input or --yaml-output and flip back and forth between JSON and YAML promiscuously and have 100% jq UI compat, which helps because I use jq a lot. First thing I looked at on yq is '-s', which is 'slurp' for jq. Slightly altered semantics would just trip me up, and it seems like you can make a nearly straight bijection between YAML and jq so you can just do exactly the same things with either one (with some minor exceptions.)

    https://github.com/itchyny/gojq

  • 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.

  • Another tool in this space is Dasel[1], which can handle querying/modifying JSON, YAML, TOML, XML and CSV files.

    [1] https://github.com/TomWright/dasel

  • yq

    Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents (by kislyuk)

  • 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.

  • csvq

    SQL-like query language for csv

  • 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.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • jmespath.spec

    JMESPath Specification

  • Not to mention that JMESpath appears to be abandoned.

    There is a fork (https://github.com/jmespath-community/jmespath.spec), but it seems unlikely to be used by the aws cli (https://github.com/aws/aws-cli/issues/7396). Although, for that matter jq is semi-abandoned itself.

  • aws-cli

    Universal Command Line Interface for Amazon Web Services

  • Not to mention that JMESpath appears to be abandoned.

    There is a fork (https://github.com/jmespath-community/jmespath.spec), but it seems unlikely to be used by the aws cli (https://github.com/aws/aws-cli/issues/7396). Although, for that matter jq is semi-abandoned itself.

  • zsv

    zsv+lib: tabular data swiss-army knife CLI + world's fastest (simd) CSV parser

  • emrichen

    A Template engine for YAML & JSON

  • 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

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • An Introduction to JQ

    13 projects | /r/programming | 24 Aug 2021
  • That's a Lot of YAML

    14 projects | news.ycombinator.com | 28 Sep 2023
  • Tool to interact with CSV

    9 projects | /r/commandline | 27 Feb 2023
  • Run SQL on CSV, Parquet, JSON, Arrow, Unix Pipes and Google Sheet

    9 projects | news.ycombinator.com | 24 Sep 2022
  • How to use SQL to directly query files

    5 projects | dev.to | 2 Feb 2022