Skip to main content
Explore our tutorials to learn how to use Codegen for various code transformation tasks.

Modernization & Migration

API Migrations

Update API calls, handle breaking changes, and manage bulk updates across your codebase.

Python 2 to 3

Migrate Python 2 code to Python 3, updating syntax and modernizing APIs.

SQLAlchemy 1.6 to 2.0

Update SQLAlchemy code to use the new 2.0-style query interface and patterns.

unittest to pytest

Convert unittest test suites to pytest’s modern testing style.

Increase Type Coverage

Add TypeScript types, infer types from usage, and improve type safety.

React Modernization

Convert class components to hooks, organize components into files, and extract prop types.

Code Quality & Organization

Delete Dead Code

Remove unused imports, functions, and variables with confidence.

Organize Your Codebase

Restructure files, enforce naming conventions, and improve project layout.

Improve Modularity

Split large files, extract shared logic, and manage dependencies.

Documentation & Features

Create Documentation

Generate JSDoc comments, README files, and API documentation.

Manage Feature Flags

Add, remove, and update feature flags across your application.

AI Integration

Prepare for AI

Generate system prompts, create hierarchical documentation, and optimize for AI assistance.
Each tutorial includes practical examples, code snippets, and best practices. Follow them in order or jump to the ones most relevant to your needs.