cloudflare / cloudflare/python-workers-examples

Suggestions for fastapi support

オープン
#3 コメント 12 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
309
フォーク
69
平均マージ
3日 11時間
マージ済み PR(30日)
13

説明

I often use FastAPI to build the backend of my applications, so I was excited to see that I can write code using Python and FastAPI with Cloudflare Workers. However, after using it, I don't feel as comfortable as before.

For example, if I want to access my D1 database, I need to define the function's parameters as `req: Request` and use `env = req.scope["env"]` to get the `env`. Doing so means FastAPI can't help me validate my parameters, which is one of the main advantages of using it. Additionally, the lack of type hints makes development harder for me.

On top of that, the absence of an ORM for D1 makes it quite troublesome to use, do you have any plans to develop an ORM?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。