Skip to content

Commit f6ae5c2

Browse files
committed
📝 Recommend use uv start project
1 parent e442acb commit f6ae5c2

File tree

4 files changed

+547
-7
lines changed

4 files changed

+547
-7
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
.vscode
33
**/__pycache__
44

5+
build/
6+
*.egg-info/
7+
58
logs/
69
scripts/

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@
4141

4242
1. 安装依赖
4343

44-
推荐使用[start](https://github.com/Dragon-GCS/start)
44+
推荐使用[uv](https://hellowac.github.io/uv-zh-cn/getting-started/installation/)
4545

4646
```bash
47-
start init # 创建虚拟环境(可选)
48-
start install
47+
uv sync
4948
```
5049

5150
或者使用`pip`
@@ -58,6 +57,10 @@
5857
2. 启动服务
5958

6059
```bash
60+
# use uv
61+
uv run uvicorn main:app
62+
# use python
63+
source .venv/bin/activate # 如果有虚拟环境
6164
uvicron main:app
6265
```
6366

README_en.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ Clone the repository
4141

4242
1. Install dependencies
4343

44-
Use [start](https://github.com/Dragon-GCS/start)(Recommended)
44+
Use [uv](https://hellowac.github.io/uv-zh-cn/getting-started/installation/)
4545

4646
```bash
47-
start init # Create virtual environment(Optional)
48-
start install
47+
uv sync
4948
```
5049

5150
Or use `pip`
@@ -58,7 +57,11 @@ Clone the repository
5857
2. Start the server
5958

6059
```bash
61-
uvicron main:app --port <port>
60+
# use uv
61+
uv run uvicorn main:app
62+
# use python
63+
source .venv/bin/activate # If have virtual environment
64+
uvicron main:app
6265
```
6366

6467
### Docker

0 commit comments

Comments
 (0)