macOS
brew install pyupgradelocal Homebrew formula metadata
sudo port install pyupgradeMacPorts ports tree · python/pyupgrade/Portfile · Quelle: api.github.com
brew / Rang 3276
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für pyupgrade in AI-Agent-Workflows.
Installation
brew install pyupgradelocal Homebrew formula metadata
sudo port install pyupgradeMacPorts ports tree · python/pyupgrade/Portfile · Quelle: api.github.com
sudo apt install pyupgradeDebian stable package indexes · pyupgrade · Quelle: deb.debian.org
nix profile install nixpkgs#pyupgradenixpkgs package indexes · pyupgrade · Quelle: raw.githubusercontent.com
sudo pacman -S pyupgradeArch Linux sync databases · pyupgrade · Quelle: geo.mirror.pkgbuild.com
Überblick
Upgrade syntax for newer versions of Python
Verlauf
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.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
Executables
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
pyupgrade | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/asottile/pyupgrade
Installationsmetadaten
| Paketschlüssel | brew:pyupgrade |
|---|---|
| Version | 3.21.2 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/pyupgrade |
| Homepage | https://github.com/asottile/pyupgrade |
| Repository | https://github.com/asottile/pyupgrade |
| Lizenz | MIT |
| Quellarchiv | https://files.pythonhosted.org/packages/7f/a1/dc63caaeed232b1c58eae1b7a75f262d64ab8435882f696ffa9b58c0c415/pyupgrade-3.21.2.tar.gz |
| Abhängigkeiten | python@3.14 |
| Bottle | verfügbar (auf all) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| 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 |
|
Source-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
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 pyupgradeQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.