uv-run READMEFeatures 功能When you use uv for project management, you need to run the code using 当你使用uv进行项目管理时,需要使用 🎉🎉🎉 现已支持Fastapi服务自动运行 According to the official recommendations of Fastapi, you can configure the location of the application in the pyproject.toml file, for example: 依据Fastapi官方建议,你可以在 pyproject.toml 文件中配置应用的位置,例如:
If your code structure is as follows: 如果你的代码结构如下:
Then you can set the entrypoint as: 那么你可以将 entrypoint 设置为:
Regardless of the above method, when you open the main.py file, simply clicking the 无论以上何种方式,当你打开main.py文件时,点击 Enjoy! |