pkg.soopen package index

brew / 順位 3276

pyupgrade を Homebrew, apt, MacPorts, Nix, pacman でインストール

pyupgrade のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install pyupgrade

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install pyupgrade

MacPorts ports tree · python/pyupgrade/Portfile · ソース: api.github.com

概要

パッケージ概要

Upgrade syntax for newer versions of Python

コマンドとエイリアス

  • pyupgrade

履歴

プロジェクトの歴史と使われ方

pyupgrade is a Python source modernizer, usable directly or as a pre-commit hook, that rewrites syntax and compatibility patterns when newer Python versions are permitted.

プロジェクトの歴史

Anthony Sottile developed pyupgrade as a command-line program and pre-commit hook for automatically modernizing Python syntax. The project accumulated transformations for language changes ranging from set literals and f-strings to removal of Python 2 compatibility constructs and outdated standard-library aliases.

The tool follows an explicit-target model: maintainers select flags such as `--py36-plus` or later equivalents so rewrites are constrained by the minimum Python version their project supports.

採用の歴史

pyupgrade became available across several packaging ecosystems, including PyPI, Homebrew, Debian and Ubuntu, MacPorts, Arch Linux, and Nix. Its official pre-commit hook also made it straightforward to apply automatically during commits.

使われ方

Users run `pyupgrade` against Python files or configure its official pre-commit hook. Minimum-version flags enable transformations that would be unsafe for older interpreters.

Typical use accompanies a minimum-supported-Python bump, removes redundant compatibility code, and modernizes constructs such as formatting expressions, imports, type declarations, and standard-library aliases.

パッケージ好きにとっての重要性

pyupgrade captures Python-version migration knowledge as repeatable source transformations. Package maintainers value it because raising a project's minimum Python version can be followed by a mechanical cleanup of obsolete compatibility syntax, imports, and idioms.

タイムライン

  • Early project: pyupgrade was established as both a standalone command and a pre-commit hook.
  • Subsequent development: Version-target flags and an extensive catalog of syntax, import, and compatibility rewrites were added.
  • Ongoing adoption: The tool is packaged by multiple Unix-like operating-system and language-package ecosystems.

Related projects

  • pre-commit provides the hook framework documented by pyupgrade.
  • python-modernize and six address older Python compatibility concerns that pyupgrade can remove when a project no longer needs those compatibility layers.
  • reorder-python-imports is another source-maintenance tool referenced by the official README.

セキュリティ状態

リスクレベル: グリーン

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 メタデータは 1 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
pyupgradecliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-09-19
マネージャ版3.21.2
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/asottile/pyupgrade

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:pyupgrade
バージョン3.21.2
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/pyupgrade
ホームページhttps://github.com/asottile/pyupgrade
リポジトリhttps://github.com/asottile/pyupgrade
ライセンスMIT
ソースアーカイブhttps://files.pythonhosted.org/packages/7f/a1/dc63caaeed232b1c58eae1b7a75f262d64ab8435882f696ffa9b58c0c415/pyupgrade-3.21.2.tar.gz
依存関係python@3.14
Bottle利用可能 (対象 all)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

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

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

pyupgrade 3.19.1-1

Tool to automatically upgrade Python 3 syntax for newer versions

https://github.com/asottile/pyupgrade

sudo apt install pyupgrade
  • Section: devel
  • Architecture: all
  • 2 依存関係
  • normalized package name match
  • 一致条件: Pyupgrade
Debian stable package indexes · deb.debian.org · Debian stable package indexes: pyupgrade from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

pyupgrade

nix profile install nixpkgs#pyupgrade
  • normalized package name match
  • 一致条件: Pyupgrade
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: pyupgrade from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

pyupgrade 2.37.1-2

Tool to automatically upgrade Python 3 syntax for newer versions

https://github.com/asottile/pyupgrade

sudo apt install pyupgrade
  • Section: universe/devel
  • Architecture: all
  • 2 依存関係
  • normalized package name match
  • 一致条件: Pyupgrade
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: pyupgrade from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

pyupgrade 3.21.2-1

A tool to automatically upgrade syntax for newer versions of the language

https://github.com/asottile/pyupgrade

sudo pacman -S pyupgrade
  • License: MIT
  • Architecture: any
  • 2 依存関係
  • normalized package name match
  • 一致条件: Pyupgrade
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: pyupgrade from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

pyupgrade

sudo port install pyupgrade
  • normalized package name match
  • 一致条件: Pyupgrade
MacPorts ports tree · api.github.com · MacPorts ports tree: python/pyupgrade/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • 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