pkg.soopen package index

brew / 排名 475

使用 Homebrew, zypper, Nix, apk, apt, dnf, MacPorts, scoop 安装 python-yq

查看 python-yq 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install python-yq

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install xq

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

Linux

openSUSE zypper已验证 · 92%
sudo zypper install python313-yq

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

Nix已验证 · 92%
nix profile install nixpkgs#tomlq

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

Alpine Linux apk已验证 · 92%
sudo apk add xq

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

Debian apt已验证 · 92%
sudo apt install xq

Debian stable package indexes · xq · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install xq

Fedora Rawhide package metadata · xq · 来源: dl.fedoraproject.org

Windows

Scoop已验证 · 92%
scoop install main/xq

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

概览

软件包摘要

Command-line YAML and XML processor that wraps jq

命令和别名

  • tomlq
  • xq

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 5 个平台目标。
  • 安装时包含 2 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
tomlqcli全局可执行文件
xqcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-11-04
管理器版本4.4.5
管理器更新时间2026-10-12
本地数据OK
上游not checked
检测到的最新版本未检测到

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

安装元数据

软件包元数据

软件包键brew:python-yq
版本4.4.5
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/python-yq
主页https://kislyuk.github.io/yq/
仓库https://github.com/kislyuk/yq
上游文档https://kislyuk.github.io/yq/
许可证Apache-2.0
源码归档https://files.pythonhosted.org/packages/fd/be/ae37199d28a0a99eb79084f91da94f6e7e58550552361a2397c5032d5d37/yq-4.4.5.tar.gz
最后更新2026-10-12T03:34:17Z
Pulseupdated
依赖libyaml, python@3.15
macOS 提供的库jq
Bottle可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • installed executable or alias match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • installed executable or alias match
  • 匹配方式: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 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 2 提供
  • installed executable or alias match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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