macOS
brew install pyupgradelocal Homebrew formula metadata
sudo port install pyupgradeMacPorts ports tree · python/pyupgrade/Portfile · Source: api.github.com
brew / rang 3276
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de pyupgrade pour les workflows d'agents IA.
installation
brew install pyupgradelocal Homebrew formula metadata
sudo port install pyupgradeMacPorts ports tree · python/pyupgrade/Portfile · Source: api.github.com
sudo apt install pyupgradeDebian stable package indexes · pyupgrade · Source: deb.debian.org
nix profile install nixpkgs#pyupgradenixpkgs package indexes · pyupgrade · Source: raw.githubusercontent.com
sudo pacman -S pyupgradeArch Linux sync databases · pyupgrade · Source: geo.mirror.pkgbuild.com
aperçu
Upgrade syntax for newer versions of Python
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.
exécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
pyupgrade | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/asottile/pyupgrade
métadonnées d'installation
| Clé du paquet | brew:pyupgrade |
|---|---|
| Version | 3.21.2 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/pyupgrade |
| Page d'accueil | https://github.com/asottile/pyupgrade |
| Dépôt | https://github.com/asottile/pyupgrade |
| Licence | MIT |
| Archive source | https://files.pythonhosted.org/packages/7f/a1/dc63caaeed232b1c58eae1b7a75f262d64ab8435882f696ffa9b58c0c415/pyupgrade-3.21.2.tar.gz |
| Dépendances | python@3.14 |
| Bouteille | disponible (sur all) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
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 pyupgradepiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.