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