mercredi 6 décembre 2017

Design of webinterface for console application (Python)

I face the following situation. I have a Python-console application (that I wrote) running on my server and I want to give friends and other people access to that application without giving them access to the server. I thought about writing a webinterface with a little login that passes commands to the application. I already did this once but back then I built a PHP script which called console-scripts /python scripts which then did what the user wanted. That approach wasn't good for various obvious reasons. It took long an was very insecure.

What I want to know now: Is there a better way to do such a thing? I already googled but found nothing fitting. I for example look at django but that doesn't seem to work well if you just want to "connect" an app running in the background.

So how would you do it? Did I maybe miss some pipe-module? Would you use Python for the webinterface too - or PHP/HTML, or maybe something completly different?

Thanks for the help!

Aucun commentaire:

Enregistrer un commentaire