Is there a way to make my python script served by a Simple HTTP server and call the script functions from the outside (in an other program) in a API philosophy?
EDIT
Ok, thanks to @upman's answer, I know that I can use SimpleXMLRPCServer for that, the question still: how to listen to the XML-RPC Server in an other program written with an other language than python (Node.js for example )
What you're asking for is called Remote Procedure Calls (RPCs)
You can Look into the SimpleXMLRPCServer module in Python
Server code
Python Client
Source: https://docs.python.org/2/library/simplexmlrpcserver.html
EDIT
XMLRPC is a standard protocol, so there are implementations for it in most of the popular languages. There's a package for node as well. You can install with npm like so
npm install xmlrpcYou can make calls to the above python server with it
Javascript Client
There's a jQuery implementation xmlrpc as well. So you can make RPCs from the browser.