← All recipes
Moderne licensed

Upgrade to Python 3.9

Recipe IDorg.openrewrite.python.migrate.UpgradeToPython39Artifactopenrewrite-migrate-python

Migrate deprecated APIs for Python 3.9 compatibility. This includes PEP 585 built-in generics, removed base64 functions, and deprecated XML Element methods.

Composite recipepythonmigration3.9Proprietary

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

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.