Flask works fine for this.
Here some links from me link1, link2 , link3
Python WebServer With Flask and Raspberry Pi
Just so you know Flask comes with build in web-server,so can develop everything without lighttpd.
If need to make public on web then need to use a production web-server,then Gunicorn can be better choice than lighttpd.
As there are really good tutorials for this How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04
Here some links from me link1, link2 , link3
Python WebServer With Flask and Raspberry Pi
Just so you know Flask comes with build in web-server,so can develop everything without lighttpd.
If need to make public on web then need to use a production web-server,then Gunicorn can be better choice than lighttpd.
As there are really good tutorials for this How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04