9 captures
17 Apr 2021 - 13 Feb 2026
Mar APR May
17
2020 2021 2022
success
fail

About this capture

COLLECTED BY

Collection: Open Syllabus

The Open Syllabus collection contains WARC files from a mid-2021 crawl of about 50 million unique seed URLs extracted from the Open Syllabus version 2.6 dataset and their page requisites. The bulk of the seed URLs are from ".com", ".org", ".edu", and ".uk" TLDs.


Crawl Summary


Seed Summary

* NOTE: More than 13% URLs in the dataset point to Wayback Machine!


TIMESTAMPS

The Wayback Machine - http://web.archive.org/web/20210417180519/https://www.fullstackpython.com/flask-code-examples.html
 

Full Stack Python logoFull Stack Python
All topics | Blog | Supporter's Edition | @fullstackpython | Facebook | What's new?

Flask Example Projects and Code





Flask is a Python web framework. Official Flask logo. Flask Artwork License.
Flask's large ecosystem of extensions make it easier for developers to build common web app features such as authentication, relational database access and APIs even though support is not built into the core Flask library.

Code Examples Sorted by Flask Class and Function


Specific examples are shown on the following individual pages, organized by classes and functions provided by Flask, that are frequently used when building your own web applications.

Flask: Extensions, Plug-ins and Related Libraries & Example Projects and Code

flask.app BadRequest, Flask, Headers, ImmutableDict

flask.blueprints Blueprint

flask.cli AppGroup, DispatchingApp, FlaskGroup, ScriptInfo, pass_script_info, with_appcontext

flask.ctx after_this_request, has_app_context, has_request_context

flask.globals current_app, g, request, session

flask.helpers flash, get_root_path, make_response, safe_join, send_file, url_for

flask.json JSONEncoder, jsonify

flask.sessions BadSignature, SessionInterface, SessionMixin

flask.signals Namespace, got_request_exception

flask.templating render_template, render_template_string

flask.views MethodView, View, http_method_funcs



Example Projects with Great Example Code


The following active projects use the Flask 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 demonstrates how to incorporate this payment provider's API into your Flask web application. The code is open sourced under the MIT license.

CTFd


CTFd (homepage) is a capture the flag (CTF) hacking web app built with Flask. 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.

Datadog Flask example


The Datadog Flask app contains many examples of the Flask core functions available to a developer using the web framework.

Deploy Keras Model with Flask as Web App in 10 Minutes


The keras-flask-deploy-webapp project combines the Flask web framework with the Keras deep learning library to provide an example image classifier that is easy to deploy. The application can be quckly run in a Docker container on your local development environment. The project is licensed under the GNU General Public License v3.0.

FlaskBB


FlaskBB (project website) is a Flask-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.

FlaskBB is provided as open source under this license.

flask-bones


flask-bones (demo) is large scale Flask example application built with Blueprints (example Blueprint code). This project is provided as open source under the MIT license.

Flaskex


Flaskex is a working example Flask 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.

Flask Bookshelf


flask-bookshelf is the example Flask application that developers create when going through this Flask series of blog posts.

Flask JSONDash


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.

flask-phone-input


flask-phone-input is an example application that ties together the intTellInput.js JavaScript plugin with the Flask-WTF form-handling library. flask-phone-input is provided as open source under the MIT license.

flaskSaaS


flaskSaas is a boilerplate starter project to build a software-as-a-service (SaaS) web application in Flask, with Stripe for billing. The boilerplate relies on many common Flask extensions such as Flask-WTF, Flask-Login, Flask-Admin, and many others. The project is provided as open source under the MIT license.

Flasky


Flasky is a wonderful example application by Miguel Grinberg that he builds while teaching developers how to use Flaskinhis books and videos. Flasky is open sourced under the MIT license.

indico


indico (project website, documentation and sandbox demo) is a Flask-based web app for event management. The code is open sourced under the MIT license.

newspie


NewsPie is a minimalistic news aggregator created with Flask and the News API. NewsPie is provided as open source under the MIT license.

Science Flask


Science Flask is a Flask-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 is the primary creator of Science Flask and the project is open source under the GNU General Public License.

ShortMe-URL-Shortener


ShortMe is a Flask 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.

tedivm's flask starter app


tedivm's flask starter app is a base of Flask code and related projects such as Celery which provides a template to start your own Flask web app. The project comes baked with an admin panel, API authentication and authorization, SQLAlchemy 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.

trape


trape is a research tool for tracking people's activities that are logged digitally. The tool uses Flask 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.




Sponsored By


Sentry logo
Software errors are inevitable. Chaos is not. Try Sentry for free.

AssemblyAI logo
The most accurate speech-to-text API. Built for Python developers.





Table of Contents



1. Introduction 2. Development Environments 3. Data 4. Web Development 5. Deployment 6. DevOps Changelog What Full Stack Means About the Author Future Directions Page Statuses Flask ExtensionsFlask Example Codeflask.app BadRequestflask.app Flaskflask.app Headersflask.app ImmutableDictflask.blueprints Blueprintflask.cli AppGroupflask redirectflask.cli DispatchingAppflask.cli FlaskGroupflask.cli ScriptInfoflask.cli pass_script_infoflask.cli with_appcontextflask requestflask.ctx after_this_requestflask.ctx has_app_contextflask.ctx has_request_contextflask.globals current_appflask.globals gflask.globals requestflask.globals sessionflask.helpers flashflask.helpers get_root_pathflask.helpers make_responseflask.helpers safe_joinflask.helpers send_fileflask.helpers url_forflask.json JSONEncoderflask.json jsonifyflask.sessions BadSignatureflask.sessions SessionInterfaceflask.sessions SessionMixinflask.signals Namespaceflask.signals got_request_exceptionflask.templating render_templateflask.templating render_template_stringflask.views MethodViewflask.views Viewflask.views http_method_funcsflask_sqlalchemy.SQLAlchemy Model ...or view the full table of contents.



Full Stack Python


Full Stack Python is an open book that explains concepts in plain language and provides helpful resources for those topics.

Updates via Twitter & Facebook.



Chapters



1. Introduction 2. Development Environments 3. Data 4. Web Development 5. Deployment 6. DevOps Changelog What Full Stack Means About the Author Future Directions Page Statuses » Flask Example Code ...or view the full table of contents.

 



Matt Makai 2012-2021