← All recipes
Moderne licensed

Upgrade to Python 3.11

Recipe IDorg.openrewrite.python.migrate.UpgradeToPython311Artifactopenrewrite-migrate-python

Migrate deprecated and removed APIs for Python 3.11 compatibility. This includes handling removed modules, deprecated functions, and API changes between Python 3.10 and 3.11.

Composite recipepythonmigration3.11Proprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.python.migrate.UpgradeToPython311

If the recipe isn’t available locally, install it with:

mod config recipes pip install openrewrite-migrate-python

Definition

This recipe runs the following recipes in order.