execution python application from browser
I have written a python console based program. It takes few arguments (like file name ) for execution. I want to run it from the browser... How can I parse this arguments and execute that python code Any clues..approaches. Thanks
Maybe you should clarify your problem. At least i don't fully understand why you want to run a terminal program in the browser?
But if you want to reuse some code you have already written you could use a micro framework like Flask.
Check this example from flask's docs:
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello World!" if __name__ == "__main__": app.run()
So you could write a simple view that accepts the arguments you need and the view would then call your code and return whatever you want, most likely an http response.