Hacker GitHub

← All repos

dvolk/pq

View on GitHub ↗ ★ 3 Python

Like jq, but with Python

3 mentions on Hacker News by 1 person: 1 story, 2 comments · first 2021-09-07 · latest 2022-08-22

Mentions per year 3 mentions · busiest year 2022 (2)
20082026
  1. …to remember when you can just use Python? I wrote a jq-like that accepts Python syntax called pq: https://github.com/dvolk/pq So you can write stuff like: $ echo '{ "US": 3, "China": 12, "UK": 1 }' | pq -c "sum(data.values())" 16
    comment by okasaki · 2022-08-22 · in Gojq: Pure Go Implementation of Jq
  2. If you want to use jq but with Python syntax, I wrote pq: https://github.com/dvolk/pq