pkg.soopen package index

brew / Rang 3276

pyupgrade mit Homebrew, apt, MacPorts, Nix, pacman installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für pyupgrade in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install pyupgrade

local Homebrew formula metadata

MacPortsverifiziert · 94%
sudo port install pyupgrade

MacPorts ports tree · python/pyupgrade/Portfile · Quelle: api.github.com

Überblick

Paketzusammenfassung

Upgrade syntax for newer versions of Python

Befehle und Aliase

  • pyupgrade

Verlauf

Projektgeschichte und Nutzung

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.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

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

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 1 Plattformziele verfügbar.
  • Installiert mit 1 Laufzeitabhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
pyupgradecliglobales Executable

Aktualität

Version und 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.

Seite generiert2026-09-19
Manager-Version3.21.2
Manager aktualisiert
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://github.com/asottile/pyupgrade

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:pyupgrade
Version3.21.2
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/pyupgrade
Homepagehttps://github.com/asottile/pyupgrade
Repositoryhttps://github.com/asottile/pyupgrade
LizenzMIT
Quellarchivhttps://files.pythonhosted.org/packages/7f/a1/dc63caaeed232b1c58eae1b7a75f262d64ab8435882f696ffa9b58c0c415/pyupgrade-3.21.2.tar.gz
Abhängigkeitenpython@3.14
Bottleverfügbar (auf all)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

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

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

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 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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
  • Abgeglichen nach: 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 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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 Abhängigkeiten
  • normalized package name match
  • Abgeglichen nach: 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
  • Abgeglichen nach: 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

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • 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