falconry / falcon

The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
https://falcon.readthedocs.io/en/stable/
Apache License 2.0
9.53k stars 945 forks source link

Create a Falcon demonstration in Pyodide #2320

Open vytas7 opened 2 months ago

vytas7 commented 2 months ago

Although installing a web framework in the browser is really a pointless and futile exercise, we could maybe still create a demo showcasing the test client? :thinking:

In any case, I tried installing Falcon in Pyodide REPL just for fun, and hit quite many roadblocks.

ASGIConductor works out of the box though!

(With Cibuildwheel, we could also prepare a binary Pyodide wheel for 3.13, but I think optimizing performance in this scenario is pretty much moot.)

One could take a look if it is easy to embed that REPL script with our code snippets preseeded, ideally with a selector to test different examples and/or tutorials.