Is web2py better for interacting with python scripts?

58 views
Skip to first unread message

Alex M

unread,
Dec 1, 2016, 1:08:02 AM12/1/16
to web2py-users
When wanting to make a web gui for a python script, is it then better to use a python web framework?

I other words is there a better interaction between web2py and python scripts running on the server, than when using something like RoR to interact with python scripts. Or does it not matter since you would probably be communicating via REST anyway?

The reason I am asking is because I want to make a web gui for my videopy script.
The user should be able to select some videos, then run the script and see the result.

I am through the first 3 chapters of the web2py book, and I am really impressed, but I just got curious.

Massimo Di Pierro

unread,
Dec 2, 2016, 5:16:51 PM12/2/16
to web2py-users
One big issues is wether this is synchronous or asynchronous. If the script takes time you need to write the output to a file and read it incrementally when polled by the web app. it may be convent to wrap your script in a service and have the web app call the service.
Reply all
Reply to author
Forward
0 new messages