cloudflare / cloudflare/python-workers-examples

Suggestions for fastapi support

Abierto
#3 12 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
309
Forks
69
Merge medio
3 d 11 h
PR fusionados (30 d)
13

Descripción

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?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.