I was visited by the idea to write a web interface.
At the exit I want to get the following functionality:
- Use buttons to execute shell commands and get output to the window.
- If necessary, in the tomzhe window I want to have access to the server command line.
- I want to be able to save the output of any command executed earlier in the file, followed by the ability to view the contents of this file.
Now I use python to write scripts, but I want something more. Tell me, please, in which direction to dig and what tools should I use to implement my wishes?
I have a linux server and apache / apache + nginx if necessary.
flask
- easier,django
- richer - andy.37jupyter
allows the terminal in the browser to run (among other things). If you don’t use ready-made parts, the task is quite time-consuming, if you simply write on top of bare web libraries like flask, bottle, etc (a lot of logic on the client (javascript) and websocket as a transport (for responsiveness) is desirable — you need to take special care of the latter due to limitations of wsgi-models (perhaps better asyncio, twisted, tornado for permanent connections to use: here is an example that an arbitrary script interactively performs ) - jfs