title: A safe way to make an website run a python script
body: <p>I made a small script that solves an combinatorial optimization problem and I would like put it in a website so users can &quot;play&quot; with it, they could send a list of &quot;points&quot; to the server and this script would use a database to return the best combination of these &quot;points&quot;.</p>
  <p>The problem is I do not have much experience in web dev. I searched how to make an html button execute an script and I found this thread: <a href="https://stackoverflow.com/questions/48552343/how-can-i-execute-a-python-script-from-an-html-button#:%7E:text=To%20run%2C%20open%20command%20prompt,Hope%20this%20helpful">https://stackoverflow.com/questions/48552343/how-can-i-execute-a-python-script-from-an-html-button#:~:text=To%20run%2C%20open%20command%20prompt,Hope%20this%20helpful</a>.</p>
  <p>But there says that an html button calling an python script is not safe. So what would be ideal What would be an ideal, safe alternative so that I could make sure that anyone who accesses my website can execute this script safely?</p>