Efficiently switch from Poetry to uv in your Python project
- In the root folder of your poetry project with
pyproject.toml
file, run the following commandswget https://raw.githubusercontent.com/MridulaMaddukuri/poetry-uv-project/master/poetry-to-uv.sh
to download the bash scriptbash poetry-to-uv.sh
to modify the pyproject.toml file to be uv compatible - To update your project to uv
uv sync
This will create auv.lock
file in your root folder - Run python scripts
uv run my_project/add.py
poetry-to-uv.sh
script is from this amazing guide, only slightly modified