← All recipes
Moderne licensed

Find deprecated cgi module usage

Recipe IDorg.openrewrite.python.migrate.FindCgiModuleArtifactopenrewrite-migrate-python

The cgi module was deprecated in Python 3.11 and removed in Python 3.13. Use urllib.parse for query string parsing, html.escape() for escaping, and web frameworks or email.message for form handling.

Single recipepythonmigration3.13PEP 594Proprietary

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

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

mod config recipes pip install openrewrite-migrate-python