Skip to content

Simple example on how to build a Flask App with features like error handling, exception handling, logging in production, and how to serve app using waitress as production web server.

License

Notifications You must be signed in to change notification settings

sm925/Flask-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Flask-App

Simple example on how to build a Flask Api which would expose a get endpoint.

Features in this app includes basic error handler, after request function, exception handler and logging using rotating file handler (helpful in production environment). And, how to serve this app using waitress (supports both windows and linux) in production.

Logging and exception handling credits to @ivanleoncz in https://stackoverflow.com/questions/14037975/how-do-i-write-flasks-excellent-debug-log-message-to-a-file-in-production post.

About

Simple example on how to build a Flask App with features like error handling, exception handling, logging in production, and how to serve app using waitress as production web server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages