macOS
brew install pyupgradelocal Homebrew formula metadata
sudo port install pyupgradeMacPorts ports tree · python/pyupgrade/Portfile · ソース: api.github.com
brew / 順位 3276
pyupgrade のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install pyupgradelocal Homebrew formula metadata
sudo port install pyupgradeMacPorts ports tree · python/pyupgrade/Portfile · ソース: api.github.com
sudo apt install pyupgradeDebian stable package indexes · pyupgrade · ソース: deb.debian.org
nix profile install nixpkgs#pyupgradenixpkgs package indexes · pyupgrade · ソース: raw.githubusercontent.com
sudo pacman -S pyupgradeArch Linux sync databases · pyupgrade · ソース: geo.mirror.pkgbuild.com
概要
Upgrade syntax for newer versions of Python
履歴
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
pyupgrade | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | pyupgrade |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
pyupgrade 3.19.1-1
Tool to automatically upgrade Python 3 syntax for newer versions
https://github.com/asottile/pyupgrade
sudo apt install pyupgradepyupgrade
nix profile install nixpkgs#pyupgradepyupgrade 2.37.1-2
Tool to automatically upgrade Python 3 syntax for newer versions
https://github.com/asottile/pyupgrade
sudo apt install pyupgradepyupgrade 3.21.2-1
A tool to automatically upgrade syntax for newer versions of the language
https://github.com/asottile/pyupgrade
sudo pacman -S pyupgradepyupgrade
sudo port install pyupgradeソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.