r/Python • • Oct 26 '14

Run python scripts from web

Hello everyone,

I have some python scripts that I need people can execute via web, passing some variables to the script with a form.

Any idea? something where to start, I am so lost with this.

For example, a telnet script to enters a router and change some stuff.

What I need is a webpage with a form, where the user can pass some variables to the script, send the form, execute the script described above and show some output.

Its possible using only python? I dont want to use php in the web, I just want to use python.

any help is welcome thank you guys : )

0 Upvotes

10 comments sorted by

View all comments

-1

u/Duskmon Oct 27 '14

If you use flask this is actually very easy. Here's a link to a flask project that does EXACTLY what you want.

Just some form requests. Good luck. If you have questions feel free to ask, I'll be around.

https://github.com/DavidAwad/basildb.me

-1

u/[deleted] Oct 28 '14

thanks man, im beginning to see the light. I have to fight a lot because I am a newbie with flask but this help me a looot.

btw, sorry everyone, maybe this should go in learnpython subreddit. sorry and thank you all! i love python community = )