DebugToolbar, Testing, Exceptional... A&A: Login, Principal, OAuth, OpenID WSGI middleware f r o m f l a s k . e x t . s q l a l c h e m y i m p o r t S Q L A l c h e m y f r o m f l a s k . e x t . r e s t l e s s i m p o r t A P I M a n a g e r a p p = F l a s k ( _ _ n a m e _ _ ) d b = S Q L A l c h e m y ( a p p ) m a n a g e r = A P I M a n a g e r ( a p p , f l a s k _ s q l a l c h e m y _ d b = d b ) # P r o d u c t j e S Q L A l c h e m y D B m o d e l m a n a g e r . c r e a t e _ a p i ( P r o d u c t , m e t h o d s = [ ' G E T ' , ' P O S T ' , ' D E L E T E ' ] ) a p p . w s g i _ a p p = M y M i d d l e w a r e ( a p p . w s g i _ a p p )