Tutorial - First Conversion¶
Follow this step-by-step tutorial to migrate your first FastAPI project.
Prerequisites¶
- Python 3.10+
- A FastAPI project directory (example:
./fastapi_project)
Step 1 - Install the CLI¶
Step 2 - Analyze the project¶
This tells you what the converter detected: routes, dependencies, middleware patterns, and potential unsupported constructs.
Step 3 - Dry-run conversion with diff¶
lilya-converter convert ./fastapi_project ./lilya_project --dry-run --diff --report ./reports/convert.json
Review:
- terminal diff output,
- ./reports/convert.json diagnostics,
- whether any manual follow-up is needed.
Step 4 - Run actual conversion¶
Step 5 - Verify converted output¶
Step 6 - Inspect applied rules¶
Next¶
- For single-file migration, see Convert a Single File.
- For advanced command options, see Command Reference.