File tree Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,13 @@ Windows
91
91
uv を使用する場合:
92
92
93
93
```
94
- uv run python main.py
94
+ uv run uvicorn main:app --reload
95
95
```
96
96
97
97
venv を使用する場合:
98
98
99
99
```
100
- (venv) python main.py
100
+ (venv) % uvicorn main:app --reload
101
101
```
102
102
103
103
サーバーが起動したら、ブラウザで http://127.0.0.1:8000 にアクセスできます。
Original file line number Diff line number Diff line change @@ -231,13 +231,3 @@ async def multi_async(data: MultiRequest):
231
231
meta = {"duration" : duration },
232
232
)
233
233
return response
234
-
235
-
236
- def main ():
237
- import uvicorn
238
-
239
- uvicorn .run (app , host = "127.0.0.1" , port = 8000 )
240
-
241
-
242
- if __name__ == "__main__" :
243
- main ()
Original file line number Diff line number Diff line change 17
17
18
18
一つのエンドポイントから徐々に増やしていき、バリデーションなどを学ぶ
19
19
20
- https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/single-no-validation-2
20
+ https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/single-no-validation-3
21
21
22
22
## (2) 動かしてみてから、改造する
23
23
24
24
非同期を除くエンドポイントが完成しているところから、動かしてみて改造する
25
25
26
- https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/multi-validation-2
26
+ https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/multi-validation-3
27
27
28
28
## (3) FastAPI のエンドポイントを 0 から作る
29
29
30
30
手を動かしながら一緒に API サーバを作る(LangChain 部分はモジュールを呼び出すだけ)
31
31
32
- https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/langchain-2
32
+ https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/langchain-3
33
33
34
34
## (4) 非同期対応の実装を行う
35
35
36
36
非同期部分の API の作り込みを行う
37
37
38
- https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/multi-validation-2
38
+ https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/multi-validation-3
39
39
40
40
## (5) 環境設定のみの状況から自由に FastAPI で API サーバを作る
41
41
42
42
別用途で API サーバを作ってみたい人向け
43
43
44
- https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/init-2
44
+ https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/init-3
45
45
46
46
# 20250605 時点の完成版
47
47
48
- https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/multi-async-2
48
+ https://github.com/pyconjp/pyconjp2025-camp-tutorial/releases/tag/multi-async-3
You can’t perform that action at this time.
0 commit comments