title: Flask Example Projects and Code category: page slug: flask-code-examples sortorder: 500020001 toc: False sidebartitle: Flask Example Code meta: Python example projects and code that show how to use the Flask web microframework. ## Example Projects with Great Example Code The following active projects use the [Flask](/flask.html) framework in various ways. The code within the projects can show you how to build your own applications. ### Braintree Flask example [Braintree's Flask example payments app](https://github.com/braintree/braintree_flask_example) demonstrates how to incorporate this payment provider's [API](/application-programming-interfaces.html) into your [Flask](/flask.html) [web application](/web-development.html). The code is open sourced under the [MIT license](https://github.com/braintree/braintree_flask_example/blob/master/LICENSE). ### CTFd [CTFd](https://github.com/CTFd/CTFd) ([homepage](https://ctfd.io/)) is a [capture the flag (CTF) hacking web app](https://cybersecurity.att.com/blogs/security-essentials/capture-the-flag-ctf-what-is-it-for-a-newbie) built with [Flask](/flask.html). The application can be used as-is to run CTF events, or modified for custom rules for related scenarios. CTFd is open sourced under the [Apache License 2.0](https://github.com/CTFd/CTFd/blob/master/LICENSE). ### Datadog Flask example The [Datadog Flask app](https://github.com/DataDog/trace-examples/tree/master/python/flask) contains many examples of the [Flask](/flask.html) core functions available to a developer using the [web framework](/web-frameworks.html). ### Deploy Keras Model with Flask as Web App in 10 Minutes The [keras-flask-deploy-webapp](https://github.com/mtobeiyf/keras-flask-deploy-webapp) project combines the [Flask](/flask.html) [web framework](/web-frameworks.html) with the [Keras deep learning library](https://keras.io/) to provide an example image classifier that is easy to [deploy](/deployment.html). The application can be quckly run in a [Docker](/docker.html) container on your local development environment. The project is licensed under the [GNU General Public License v3.0](https://github.com/mtobeiyf/keras-flask-deploy-webapp/blob/master/LICENSE). ### FlaskBB [FlaskBB](https://github.com/flaskbb/flaskbb) ([project website](https://flaskbb.org/)) is a [Flask](/flask.html)-based forum web application. The web app allows users to chat in an open message board or send private messages in plain text or [Markdown](/markdown.html). FlaskBB is provided as open source [under this license](https://github.com/flaskbb/flaskbb/blob/master/LICENSE). ### flask-bones [flask-bones](https://github.com/cburmeister/flask-bones) ([demo](http://flask-bones.herokuapp.com/)) is large scale [Flask](/flask.html) example application built with [Blueprints](https://flask.palletsprojects.com/en/1.1.x/blueprints/) ([example Blueprint code](/flask-blueprints-blueprint-examples.html)). This project is provided as open source under the [MIT license](https://github.com/cburmeister/flask-bones/blob/master/LICENSE). ### Flaskex [Flaskex](https://github.com/anfederico/Flaskex) is a working example [Flask](/flask.html) web application intended as a base to build your own applications upon. The application comes with pre-built sign up, log in and related screens, as well as a database backend. Flaskex is provided as open source under the [MIT license](https://github.com/anfederico/Flaskex/blob/master/LICENSE.txt). ### Flask Bookshelf [flask-bookshelf](https://github.com/damyanbogoev/flask-bookshelf) is the example [Flask](/flask.html) application that developers create when going through [this Flask series of blog posts](https://damyanon.net/tags/flask-series/). ### Flask JSONDash [Flask JSONDash](https://github.com/christabor/flask_jsondash) is a configurable web application built in Flask that creates charts and dashboards from arbitrary API endpoints. Everything for the web app is configured in JSON. The code is provided as open source under the [MIT license](https://github.com/christabor/flask_jsondash/blob/master/LICENSE). ### flask-phone-input [flask-phone-input](https://github.com/miguelgrinberg/flask-phone-input) is an example application that ties together the [intTellInput.js](https://github.com/jackocnr/intl-tel-input) JavaScript plugin with the [Flask-WTF](https://flask-wtf.readthedocs.io/) form-handling library. flask-phone-input is provided as open source under the [MIT license](https://github.com/miguelgrinberg/flask-phone-input/blob/1a1c227c044474ce0fe133493d7f8b0fb8312409/LICENSE). ### flaskSaaS [flaskSaas](https://github.com/alectrocute/flaskSaaS) is a boilerplate starter project to build a software-as-a-service (SaaS) web application in [Flask](/flask.html), with [Stripe](/stripe.html) for billing. The boilerplate relies on many common Flask extensions such as [Flask-WTF](https://flask-wtf.readthedocs.io/en/latest/), [Flask-Login](https://flask-login.readthedocs.io/en/latest/), [Flask-Admin](https://flask-admin.readthedocs.io/en/latest/), and many others. The project is provided as open source under the [MIT license](https://github.com/alectrocute/flaskSaaS/blob/master/LICENSE). ### Flasky [Flasky](https://github.com/miguelgrinberg/flasky) is a wonderful example application by [Miguel Grinberg](https://github.com/miguelgrinberg) that he builds while teaching developers how to use [Flask](/flask.html) in [his books and videos](https://courses.miguelgrinberg.com/). Flasky is [open sourced under the MIT license](https://github.com/miguelgrinberg/flasky/blob/master/LICENSE). ### indico [indico](https://github.com/indico/indico) ([project website](https://getindico.io/), [documentation](https://docs.getindico.io/en/stable/installation/) and [sandbox demo](https://sandbox.getindico.io/)) is a [Flask](/flask.html)-based web app for event management. The code is open sourced under the [MIT license](https://github.com/indico/indico/blob/master/LICENSE). ### newspie [NewsPie](https://github.com/skamieniarz/newspie) is a minimalistic news aggregator created with [Flask](/flask.html) and the [News API](https://newsapi.org/). NewsPie is provided as open source under the [MIT license](https://github.com/skamieniarz/newspie/blob/master/LICENSE). ### Science Flask [Science Flask](https://github.com/danielhomola/science_flask) is a [Flask](/flask.html)-powered web application for online scientific research tools. The project was built as a template for any scientist or groups of scientists to use when working together without having to really understand how the application is built. The application includes an academic registration process (only valid academic email addresses can be used), an admin panel, logging, and analysis forms. [@danielhomola](https://github.com/danielhomola) is the primary creator of Science Flask and the project is open source under the [GNU General Public License](https://github.com/danielhomola/science_flask/blob/master/LICENSE). ### ShortMe-URL-Shortener [ShortMe](https://github.com/AcrobaticPanicc/ShortMe-URL-Shortener) is a [Flask](/flask.html) app that creates a shortened URL that redirects to another, typically much longer, URL. The project is provided as open source under the [MIT license](https://github.com/AcrobaticPanicc/ShortMe-URL-Shortener/blob/main/LICENSE). ### tedivm's flask starter app [tedivm's flask starter app](https://github.com/tedivm/tedivms-flask) is a base of [Flask](/flask.html) code and related projects such as [Celery](/celery.html) which provides a template to start your own Flask web app. The project comes baked with an admin panel, [API authentication and authorization](/application-programming-interfaces.html), [SQLAlchemy](/sqlalchemy.html) and many other common libraries that are often used with Flask. The project's code is provided as open source under the [BSD 2-Clause "Simplified" license](https://github.com/tedivm/tedivms-flask/blob/master/LICENSE.txt). ### trape [trape](https://github.com/jofpin/trape) is a research tool for tracking people's activities that are logged digitally. The tool uses [Flask](/flask.html) to create a web front end to view aggregated data on an individual the application is set to track. The source code is provided as open source under the MIT license, according to the [README](https://github.com/jofpin/trape/blob/master/README.md).