In the beginning was cgi, then wsgi. Well, the web frameworks are on the stage now. This is evolution. If the wsgi was the ultimate solutions, no one would try to create something like zope, flask, django and so on. All the hard work is done by someone else so now is easier for us to get the same as a result.
It looks like you want to have a hot water to deal with the dirty dishes by boiling a water in the backyard on open fire. But you have to take it to the kitchen after that. It's not an easy task and could be risky. You will attach some pipes to the boiler, some isolation. Finally, you will end with something that you already have. A hot water right from the wall.
Eventually, you will end with a web framework.
If all you need is just to serve a request you don't even need a web server like Apache. Just use sockets. Asyncio sockets
By the way, you may see bottle.py. It is a 'micro framework' and is a single file. Look at how is done. I may do it too. I am a little curios
It looks like you want to have a hot water to deal with the dirty dishes by boiling a water in the backyard on open fire. But you have to take it to the kitchen after that. It's not an easy task and could be risky. You will attach some pipes to the boiler, some isolation. Finally, you will end with something that you already have. A hot water right from the wall.
Eventually, you will end with a web framework.
If all you need is just to serve a request you don't even need a web server like Apache. Just use sockets. Asyncio sockets
By the way, you may see bottle.py. It is a 'micro framework' and is a single file. Look at how is done. I may do it too. I am a little curios