jq wrapper for YAML/XML documents
Project homepage: https://kislyuk.github.io/yq/
Description
yq takes YAML input, converts it to JSON, and filters it through jq(1).
No output conversion is done by default. Command line arguments are forwarded.
yq exits 1 on YAML parsing errors, otherwise jq's exit code is forwarded.
YAML tags in the input are ignored (any nested data is treated as untagged).
Key order is preserved.
xq behaves like yq but takes XML input. Multiple XML documents can be passed
in separate files/streams. Entity expansion and DTD resolution is disabled to
avoid XML parsing vulnerabilities.
Package information
- Ports path
- textproc/yq
- Package architecture
- amd64
- Maintainer
- The OpenBSD ports mailing-list <ports@openbsd.org>
- Categories
- textproc, lang/python
- Available flavors
- None listed
- Only for architectures
- aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Runtime
- textproc/py-yaml
- textproc/py-xmltodict
- textproc/py-tomlkit
- devel/py-argcomplete
- textproc/jq
- lang/python/3
Build
Test
- devel/flake8
- devel/py-coverage
- devel/py-wheel
- textproc/py-yaml
- textproc/py-xmltodict
- textproc/py-tomlkit
- devel/py-argcomplete
- textproc/jq
- lang/python/3
- devel/py-test