MCPcopy Index your code
hub / github.com/realpython/discover-flask

github.com/realpython/discover-flask @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
66 symbols 212 edges 24 files 5 documented · 8% updated 5y ago★ 4,5474 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Discover Flask

Full Stack Web Development with Flask.

http://discoverflask.com

Build Status

Flask is a micro web framework powered by Python. Its API is fairly small, making it easy to learn and simple to use. But don't let this fool you, as it's powerful enough to support enterprise-level applications handling large amounts of traffic. You can start small with an app contained entirely in one file, then slowly scale up to multiple files and folders in a well-structured manner as your site becomes more and more complex.

real_python_logo

Please note: This is a tutorial series, which is still in progress. The source code is not meant to be used until the end of the series.

Support

Please help us keep this free, open source project going. Purchase the Real Python course. Provide gratitude through Gratipay. Star this repo. Tweet about it. Anything helps. Thank you!

Support via Gratipay

Contents

Part Title Git Tag
1 Setting Up a Static Site (blog post) part1
2 Creating a login page (blog post) part2
3 User Authentication part3
4 Template Inheritance part4
5 Databases part5
6 List Comprehensions N/A
7 Unit Tests part7
8 Deploying to Heroku part8
9 SQLAlchemy part9
10 Configuration part10
11 Secret Key part11
12 Heroku Configuration Settings part12
13 Heroku Postgres Setup part13
14 Local PostgreSQL Setup part14
15 Managing Database Migrations part15
16 Database Downgrades with Flask-Migrate/Alembic part16
17 Virtualenvwrapper part17
18 Password Hashing part18
19 Blueprints part19
20 Blueprints Redux part20
21 User Authentication (part 2) part21
22 Unit Testing with Flask-Testing part22
23 Session Management with Flask-Login part23
24 Testing User Login and Logout part24
25 User Registration (functionality and unit tests) part25
26 Finalize Messaging System part26
27 Test Coverage with coverage.py part27
28 Flask Testing! part28
29 Flask Testing (increase test coverage) part29
30 Continuous Integration part30

You can view the entire video playlist here.

Links

  • Nice Vagrant Instance for Discover Flask, for use with PyJenkinsCI - a test Jenkins Continuous Integration (CI) for Python projects, compatible with Mac OSX and Ubuntu systems. (Thanks, Apollo!)
  • Awesome project, based on the series -> HomeCenter

Core symbols most depended-on inside this repo

is_active
called by 3
project/models.py
run_migrations_offline
called by 1
migrations/env.py
run_migrations_online
called by 1
migrations/env.py
test
called by 0
manage.py
cov
called by 0
manage.py
load_user
called by 0
project/__init__.py
is_authenticated
called by 0
project/models.py
is_anonymous
called by 0
project/models.py

Shape

Method 25
Function 22
Class 14
Route 5

Languages

Python91%
TypeScript9%

Modules by API surface

tests/test_users.py11 symbols
project/models.py10 symbols
project/users/views.py6 symbols
project/static/bootstrap.min.js6 symbols
tests/test_basic.py5 symbols
tests/base.py4 symbols
project/home/views.py4 symbols
config.py4 symbols
tests/test_blog.py2 symbols
project/users/forms.py2 symbols
migrations/versions/c1b2d6a2aa6_.py2 symbols
migrations/versions/4a5b39003781_.py2 symbols

Dependencies from manifests, versioned

Flask0.10.1 · 1×
Flask-Bcrypt0.6.0 · 1×
Flask-Login0.2.11 · 1×
Flask-Migrate1.2.0 · 1×
Flask-Script2.0.5 · 1×
Flask-Testing0.4.2 · 1×
Flask-WTF0.10.2 · 1×
Jinja22.7.3 · 1×
Mako1.0.0 · 1×
MarkupSafe0.23 · 1×
SQLAlchemy0.9.4 · 1×

For agents

$ claude mcp add discover-flask \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact