-
安装UV
存在系统Python: pip install uv 不存在系统Python 先安装uv: powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" 再通过uv安装python: uv python install 3.12 参考: https://docs.astral.sh/uv/getting-started/installation/#__tabbed_1_1
-
生成uv环境
uv sync uv run uvicorn main:app
-
安装包
uv add pytest --dev
-
启动
测试环境: uvicorn src.main:app --reload 测试环境: fastapi dev 生产环境: fastapi run
-
同步包
uv sync
-
安装hook
pre-commit install
-
Notifications
You must be signed in to change notification settings - Fork 0
LTaooo/fastapi-starter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published