Deploy a python fastapi project?

Is it possible to deploy a python project with fastapi and uvicorn? If it is possible, how could it be done? Thank you so much! I search it this problem too: https://discord.com/channels/595317990191398933/1173194373362634804
1 Reply
Chaika
Chaika10mo ago
Not at the moment. Definently not with Uvicorn or anything like that. Workers differ from the normal serverless model a bit, they already have a web server running that processes the request. You don't get to launch your own. Workers run in V8, Chrome's Javascript Engine, in an isolate. So no new processes or anything like that either. Python is sort of supported via WASM, but you'd have to alter your code and add bindings for Python -> JS so your python code can get Worker's Request object/body and process it, and not use anything native like sockets/etc
Want results from more Discord servers?
Add your server