pkg.soopen package index

brew / rank 475

Install python-yq with Homebrew, zypper, Nix, apk, apt, dnf, MacPorts, scoop

Command-line YAML and XML processor that wraps jq. Version 4.4.5 via Homebrew; verified 2026-10-12. Also installable with zypper: sudo zypper install python313-yq.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install python-yq

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install xq

MacPorts ports tree · textproc/xq/Portfile · source: api.github.com

Linux

openSUSE zypperverified · 92%
sudo zypper install python313-yq

openSUSE Tumbleweed package metadata · python313-yq · source: download.opensuse.org

Nixverified · 92%
nix profile install nixpkgs#tomlq

nixpkgs package indexes · pkgs/by-name/to/tomlq/package.nix · source: api.github.com

Alpine Linux apkverified · 92%
sudo apk add xq

Alpine Linux edge package indexes · xq · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install xq

Debian stable package indexes · xq · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install xq

Fedora Rawhide package metadata · xq · source: dl.fedoraproject.org

Windows

Scoopverified · 92%
scoop install main/xq

Scoop official bucket manifest trees · bucket/xq.json · source: api.github.com

overview

Package summary

Command-line YAML and XML processor that wraps jq

Commands and aliases

  • tomlq
  • xq

history

Project history and usage

kislyuk/yq is a Python command-line wrapper that transcodes YAML, XML, or TOML and applies jq filters.

It installs the `yq`, `xq`, and `tomlq` interfaces and supports optional round-trip output and in-place edits.

Project history

The current project's published release series begins at 2.0; the documentation disclaims compatibility with an earlier unrelated yq project.

The 2.x line added XML processing, Homebrew distribution, YAML round-tripping, in-place editing, and TOML processing over time.

Later development added YAML 1.2 behavior, safer XML handling, comment-preserving round trips, YAML frontmatter support, and streaming-oriented processing.

Adoption history

The project was adopted as a way to reuse jq filters for YAML by transcoding YAML to JSON, invoking jq, and optionally converting the result back to YAML.

Its scope expanded into adjacent structured-data formats: `xq` handles XML and `tomlq` handles TOML.

The official changelog records Homebrew availability beginning in the 2.7 line, in-place editing in the 2.10 line, TOML support in the 2.12 line, and later YAML round-trip and streaming improvements.

How it is used

Pipe YAML through `yq <jq-filter>` or pass input filenames as arguments.

Use `-y` for YAML output, `-Y` when YAML tags and styles must survive a round trip, and `--in-place` for file edits.

Use `xq` for XML and `tomlq` for TOML; their format-specific output options support round-trip conversion.

Install jq separately because yq forwards filters and most command-line options to that executable.

Why package nerds care

This yq is the Python implementation whose defining feature is delegation to jq, so users retain jq's mature expression language instead of learning a separate query syntax.

The name is package-manager-sensitive because multiple unrelated projects are called yq; the official documentation explicitly says releases before its PyPI 2.0 series belonged to an unrelated project.

Timeline

  • The published series for the current project starts at 2.0; earlier identically named releases were unrelated.
  • 2018: The 2.7 line documented Homebrew availability and XML/TOML-related work.
  • 2019: YAML round-trip preservation and in-place editing arrived in the 2.9 and 2.10 lines.
  • 2021: The 2.12 line added the `tomlq` CLI and ended Python 2.7 support.
  • 2022: The 3.0 line adopted YAML 1.2 parsing and rendering behavior.

Related projects

  • jq is the processing engine behind yq and must be installed before using it.
  • The unrelated Go-based yq by Mike Farah solves a similar shell data-processing problem with a standalone binary and its own expression implementation.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 5 platform targets.
  • Installs with 2 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
tomlqcliglobal executable
xqcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-11-04
manager version4.4.5
manager updated2026-10-12
local dataok
upstreamnot checked
latest detectednot detected

https://kislyuk.github.io/yq/

install metadata

Package metadata

Package keybrew:python-yq
Version4.4.5
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/python-yq
Homepagehttps://kislyuk.github.io/yq/
Repositoryhttps://github.com/kislyuk/yq
Upstream docshttps://kislyuk.github.io/yq/
LicenseApache-2.0
Source archivehttps://files.pythonhosted.org/packages/fd/be/ae37199d28a0a99eb79084f91da94f6e7e58550552361a2397c5032d5d37/yq-4.4.5.tar.gz
Last updated2026-10-12T03:34:17Z
Pulseupdated
Dependencieslibyaml, python@3.15
Uses from macOSjq
Bottleavailable (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepython-yq
Version Scheme0
Revision0
Head VersionHEAD
Conflicts With
  • xq
  • yq
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

zypper95%

python313-yq 3.4.3-1.9

Command-line YAML processor - jq wrapper for YAML documents

https://github.com/kislyuk/yq

sudo zypper install python313-yq
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-yq
  • 9 dependencies
  • 4 provides
  • normalized package name match
  • Matched by: Python Yq
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python313-yq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
zypper95%

python314-yq 3.4.3-1.9

Command-line YAML processor - jq wrapper for YAML documents

https://github.com/kislyuk/yq

sudo zypper install python314-yq
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-yq
  • 9 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Python Yq
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: python314-yq from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
MacPorts94%

xq

sudo port install xq
  • installed executable or alias match
  • Matched by: Xq
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/xq/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

xq 1.3.0-1+b6

command line XML and HTML beautifier and content extractor

https://github.com/sibprogrammer/xq

sudo apt install xq
  • Section: golang
  • Architecture: amd64
  • Source Package: xq
  • 1 dependencies
  • installed executable or alias match
  • Matched by: Xq
Debian stable package indexes · deb.debian.org · Debian stable package indexes: xq from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

tomlq

nix profile install nixpkgs#tomlq
  • installed executable or alias match
  • Matched by: Tomlq
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/to/tomlq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Nix92%

xq

nix profile install nixpkgs#xq
  • installed executable or alias match
  • Matched by: Xq
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/xq/xq/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt92%

xq 1.0.0-2build1

command line XML and HTML beautifier and content extractor

https://github.com/sibprogrammer/xq

sudo apt install xq
  • Section: universe/golang
  • Architecture: amd64
  • 1 dependencies
  • installed executable or alias match
  • Matched by: Xq
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: xq from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk92%

xq 1.3.0-r16

Command-line XML and HTML beautifier and content extractor

https://github.com/sibprogrammer/xq

sudo apk add xq
  • License: MIT
  • Architecture: x86_64
  • Source Package: xq
  • 1 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Xq
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xq from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

xq-doc 1.3.0-r16

Command-line XML and HTML beautifier and content extractor (documentation)

https://github.com/sibprogrammer/xq

sudo apk add xq-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: xq
  • installed executable or alias match
  • Matched by: Xq
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: xq-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf92%

xq 1.5.1-1.fc46

Command-line XML and HTML beautifier and content extractor

https://github.com/sibprogrammer/xq

sudo dnf install xq
  • License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: xq
  • 3 dependencies
  • 2 provides
  • installed executable or alias match
  • Matched by: Xq
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: xq from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
Scoop92%

main/xq

scoop install main/xq
  • installed executable or alias match
  • Matched by: Xq
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/xq.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation