{"repo":"clux/lq","free":true,"listed":false,"github":"https://github.com/clux/lq","clone":"git clone https://github.com/clux/lq.git","description":"jq compatible yq/tq implementation in rust","language":"Rust","stars":51,"topics":["cli","jq","yaml","yq","toml","tq"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"lq - low overhead yq/tq/jq cli A lightweight and portable jq style cli for doing jq queries/filters/maps/transforms on YAML / TOML / JSON documents by converting to JSON and passing data to jq . Output is raw jq output which can optionally be mapped to TOML or YAML. Installation Via cargo: or download a prebuilt from releases either manually, or via binstall: Note : Requires jq . Why / Why Not jq compatibility - arbitrary jq usage on any input format (yaml/toml/json) by going through json and jq - same syntax, same filters, types, operators, conditionals, regexes, assignment, modules, etc - matches jq 's cli interface (only some extra input/output format controlling flags) - supports jq output formatters such as -c , -r , and -j (compact, raw, joined output resp) Extra Features - supports multidoc yaml input, handles yaml merge keys (expanding tags) - supports multidoc document splitting into expression based filenames - supports in-place edits of documents - maintains key order even while roundtripping between formats - reads from stdin xor file (file if last arg is a file) - filetype format inference when passing files - quick input/output flags: -y (YAML out) or -t (TOML out), -T (TOML in), -J (JSON in) Portable yq replacement - 1MB in binary (for small CI images / binstalled ci actions) - 99% replacement of python-yq (with yq named/linked to lq ) Limitations - Shells out to jq (not standalone - for now) - Expands YAML tags as part of deserialization - so tags are not pres","default_branch":null,"files":null,"tree":[],"storefront":"/r/clux","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/clux/lq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}