D
D
deex2012-02-28 15:18:37
Python
deex, 2012-02-28 15:18:37

python3 script with web interface

Habra, give me ideas on how to compile a python script into an exe so that it itself raises a web server and is accessible through a browser?

The bottom line is this:
there is a script that currently connects to Apache via cgi
there is an advanced web interface that is all drawn through the same cgi
the script itself works as a normal process in the background, the interface is only needed to edit the config and the sqlite database

there are two ways out - bind to the GUI. It's not difficult, but it will take a lot of time, because there are several scripts.
Yes, and changing the GUI in the future is a more tedious task for me than the web interface.

or compile the script into an .exe, so that a daemon with a web interface is raised at startup
at the same time, it should be taken into account that there can be 2-3-5 scripts and each must be accessible through a browser (well, here you can take random ports)

comment on this perversion, have you ever seen something like this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bagyr, 2012-02-28
@bagyr

Run some flask or cherrypy in the background thread; we prescribe routes for issuing / receiving parameters to any classes via REST + web interface to this. Something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question