I want to use a python script I have as part of an online service. Let's assume that the script calculates the square root of the input.
For now what I'm doing is:
python my_script.py 4
output: 2
My issue is that the dependencies of the script take several seconds to load, I need to avoid that each time the script is executed. The idea is to have the script running in the background all the time and the execute the sqrt() function when it gets a new input.