How to create a rest api in python only? or how to run the py file on server?
I am trying to create a rest api in python without django or flask, is there any way to create a rest api only in normon python? and, is there any way to run the py file on server?
Well you can use the builtin http Module of Python itself But it is not recommended to use it for production Here are the docs https://docs.python.org/3/library/http.server.html#module-http.server
Please don't run something built with this on a Server which could be connected to web