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

php - Passing multiple values in a url using checkbox -

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

sql - Postgresql tables exists, but getting "relation does not exist" when querying -