0

I have a python script that works from the command line. Instead of people running the script from command line and knowing which parameters go where I would like them to go to a webpage and select options and then run the script from the webpage. What is the easiest way to do this?

2
  • Are you using some sort of framework? If you have complete control of the app, just build it using some python web framework (like Django), import the script and invoke it (you may have to refactor it a bit). Commented Jan 24, 2013 at 15:19
  • Take a look at the wsgi plugin for whatever webserver you are running. Commented Jan 24, 2013 at 16:02

1 Answer 1

0

The easiest way to do this is using CGI plugin for your webserver that handles python scripts.

Sign up to request clarification or add additional context in comments.

3 Comments

My webserver is currently running on localhost can you please explain how I would set it up to call the python script
which webserver is it? @Siecje
@Siecje then see here: stackoverflow.com/questions/799354/… . especially the answer by JimB

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.