Urban-Analytics-Technology-Platform / web-app-template

https://urban-analytics-technology-platform.github.io/web-app-template/
2 stars 0 forks source link

Python backend setup #16

Closed stuartlynn closed 1 week ago

stuartlynn commented 1 month ago

In addition to a rust backend we want to have the ability to have a python backend using pyodide. We should draw from the work on demoland to generate a pyodide environment and run code there.

Some questions

dabreegster commented 1 month ago

I think a nice first step would be wiring up the equivalent of the tiny Rust backend in a web worker, just to see how the config/build steps work. A second would be including some dependencies like osmnx and networkx that get used in practice, to see how pure Python and things with system deps work. A first real use case is to let Hussein and Chris experiment with some GTFS routing from the comforts of Python, but wiring up to maplibre.

dabreegster commented 1 month ago

References: https://github.com/Urban-Analytics-Technology-Platform/demoland-web/tree/main/src/lib/python https://www.npmjs.com/package/pyodide

dabreegster commented 2 weeks ago
penelopeysm commented 1 week ago

Closed by #22