Book Image

Flask Blueprints

By : Joel Perras
Book Image

Flask Blueprints

By: Joel Perras

Overview of this book

Table of Contents (14 chapters)

Summary


After reading through this chapter, you should be more familiar with the inner workings of Flask extensions and command line-based interfaces to the application via Flask-Script.

We began by creating a simple application for the data corresponding to the repositories and issues hosted on GitHub and then installed and configured our manage.py script to act as our bridge for the Flask-Script default CLI runserver and shell commands. We added the drop_db and init_db global commands to replace the database.py script that we used in previous chapters. Once this was in place, we turned our attention to creating the script submanagers in Blueprints that we could control via the main manage.py interface script.

Finally, we implemented our own Flask extension that wrapped some basic configuration and resource instantiation of the github3.py Github API client. Once this was finished, we went back to our previously created submanager script and added the required functionality to fetch the list...