Python Workers are now generally available

(blog.cloudflare.com)

126 points | by torutofu 6 hours ago

8 comments

  • illia-v 9 minutes ago
    > we contributed upstream to ensure these HTTP clients can route requests directly through the JavaScript `fetch` API in WebAssembly environments

    Some context from an urllib3 maintainer:

    urllib3 received and merged large contributions adding Pyodide/Emscripten support a few years ago, and later JSPI support, which is what made this work for Requests.

    As far as I know, the funding for this work went to the external contributor who implemented it, not to the urllib3 maintainers. We reviewed and merged the changes, and the project is now responsible for maintaining the resulting backend.

    This matters because the Emscripten backend is still considered experimental in urllib3, and is explicitly out of scope in our security policy.

    CVE-2025-50182 is one example of the problems we've run into. urllib3's redirect controls did not have the expected behavior when requests were routed through `fetch`. There are potentially many more differences like this because browser/`fetch` networking semantics are quite different from urllib3's normal backend.

    I'm glad the work was contributed upstream and is useful to Pyodide and Cloudflare. But I think there is a meaningful difference between funding a contribution to an upstream project and funding the upstream maintainers who have to support it afterwards.

  • dsign 3 hours ago
    This is the tech at Cloudflare of course, but I swear that my first interpretation of the title was "We have replaced all our python coders with AI and they (the coders) are out and generally available" :-)
    • FartyMcFarter 52 minutes ago
      Yep - I immediately thought this was going to be some "Python SWE on the cloud for hire" service.
    • Joeboy 3 hours ago
      Yeah I initially read it as a headline about the grim state of the software dev jobs market.
  • spicypixel 1 hour ago
    One day it’ll be similarly beautifully trivial to use go too. I hope.
    • vira28 32 minutes ago
      Agree. Until then I will wait.

      Still a welcome move that they finally added support from Python.

  • stefan_lec 3 hours ago
    How do these perform for cold-starts? I remember one of the disadvantages of using web assembly for Workers was more spin-up time, but maybe they figured out a way around that.
  • simonw 1 hour ago
    Pyodide is such a cool piece of the Python ecosystem. I hope Cloudflare consider throwing some money their direction: https://opencollective.com/pyodide/contribute
    • codingglass 20 minutes ago
      100% agree. Hiring Hood a couple years ago was great money spent on that project (not that they shouldn't throw more cash at it =) )
  • karmakaze 1 hour ago
    They should support Mojo which might be a great fit for edge compute.
  • victorbjorklund 1 hour ago
    Elixir next ;) with clustering across workers (kind of kidding because elixir probably does not make sense for CF workers)
  • pastrami_panda 1 hour ago
    All example pages return 404.