python - Instantiating a Flask object within a large application -


suppose create flask server has method called foo(). suppose have python app wants create instance of server , use foo().

my_server = flaskobject() my_server.foo() 

i want have instance of flask server can manipulate without having send http requests.

i feel there simple solution i'm overlooking can't figure out.

any appreciated.


Comments