pq
query-json
Our great sponsors
- Onboard AI - Learn any GitHub repo in 59 seconds
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- SaaSHub - Software Alternatives and Reviews
pq | query-json | |
---|---|---|
3 | 4 | |
3 | 584 | |
- | - | |
0.0 | 0.0 | |
about 2 years ago | about 2 months ago | |
Python | Reason | |
- | BSD 3-clause "New" or "Revised" License |
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.
pq
-
Gojq: Pure Go Implementation of Jq
Why use a special syntax that's hard 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())"
-
FX: An interactive alternative to jq to process JSON
If you want to use jq but with Python syntax, I wrote pq:
query-json
-
Gojq: Pure Go Implementation of Jq
It's very possible it could be faster; jq seems to actually be fairly unoptimized. This implementation in OCaml was featured on HN a while back and it trashes the original jq in performance: https://github.com/davesnx/query-json
After seeing that one I did my own (less-complete) version in Rust and managed to squeeze out even more performance: https://github.com/brundonsmith/jqr
-
query-json: A story of cross-compilation with Reason
query-json is a faster and simpler re-implementation of jq's language in Reason.
There're probably better ways of achieving it since I made the implementation very unsafe davesnx/query-json/js/Js.re.
You can see more examples in the parsing tests
What are some alternatives?
js_of_ocaml - Compiler from OCaml to Javascript.
yojson - Low-level JSON parsing and pretty-printing library for OCaml
hashmap - A Golang lock-free thread-safe HashMap optimized for fastest read access.
jp - Command line interface to JMESPath - http://jmespath.org
gofx - 🐾 fx-like command-line JSON processing tool
jqr
bs-emotion - BuckleScript bindings to Emotion
gojq - Pure Go implementation of jq
tylr - a tiny tile-based editor
jsoo-react - js_of_ocaml bindings for ReactJS. Based on ReasonReact.