The minimal implementation for the application side in Python is "flipflop". It calls your function, and you return a HTML string as a result. That's enough to hook up a Python program as a web server.
Anything beyond that, such as input data parsing or generating HTML from a template or tree, should be a library, not a "framework". You might want multiple libraries from different sources.
Anything beyond that, such as input data parsing or generating HTML from a template or tree, should be a library, not a "framework". You might want multiple libraries from different sources.