cloudflare / python-workers-examples

Apache License 2.0
86 stars 10 forks source link

How do you deploy with FastAPI for Python worker #8

Closed laike9m closed 2 weeks ago

laike9m commented 2 weeks ago

I want to deploy a Python worker built with FastAPI (say this example), but got this error running npx wrangler@latest deploy

You cannot yet deploy Python Workers that depend on packages defined in requirements.txt. Support for Python packages is coming soon. [code: 10021] If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose

I found this relevant issue filed for workers-sdk: https://github.com/cloudflare/workers-sdk/issues/5608, which claimed that this is not planned for wrangler.

Is it true that, cloudflare claims to support many 3rd-party packages in Python worker, but you cannot deploy them, in any way?

dom96 commented 2 weeks ago

You cannot deploy them yet, it is planned and we are working on making this possible soon.