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

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -