"""app.shell=========Define attributes regarding use of ``flask shell``."""fromflaskimportFlaskfromapp.modelsimportMessage,Notification,Post,Task,User,Usernames,db
[docs]defregister_models(app:Flask)->None:"""Make database models accessible to the ``Flask`` shell. :param app: Application object. """app.shell_context_processor(lambda:{"db":db,"User":User,"Post":Post,"Message":Message,"Notification":Notification,"Task":Task,"Usernames":Usernames,})