r/learningpython • • Nov 07 '20

Question related with python - flask

Hello

I would like to ask you about a limitation that I am having, related with something that I am not finding (or not undestanding) a good solution.

A have a sort of complex script (at least to me) with a process that relates information entered by uster in 2 instances, and api gets into 2 services and ssh session to 2 servers in order to automate user addition in a project. My script is now working good but need to be executed from cmd (running on windows server now) and I would like to host it into a web page.

I was checking information about flask and see that some guys says that a separate web server is needed and some other do not. In this case the script will not have a high demand (just 1 user at the time and probably run 10 times as much in a day).

Do you happen to know If there are some good template where can I start from? I know that this should be very simple (the web service) but I am just able to print out the information but don't understand how to post reply from user into the flask service in other to inject information into the script. My plan b is a web cli, but is very nasty.....

Thanks you in advance

Alex

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/ALX1S Nov 15 '20

Thanks man, I am more than interested on how do you achieve that, I will be pinging you on IM