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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -