Building Web Applications with Flask

Use Python and Flask to build amazing web applications, just the way you want them!
Preview in Mapt

Building Web Applications with Flask

Italo Maia

Use Python and Flask to build amazing web applications, just the way you want them!
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $27.99
Save 64%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$34.99
$29.99 p/m after trial
RRP $27.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Building Web Applications with Flask Book Cover
Building Web Applications with Flask
$ 27.99
$ 10.00
Building Serverless Applications with Python Book Cover
Building Serverless Applications with Python
$ 39.99
$ 10.00
Buy 2 for $20.00
Save $47.98
Add to Cart

Book Details

ISBN 139781784396152
Paperback160 pages

Book Description

Flask is a powerful web framework that helps you build great projects using your favorite tools. Flask takes the flexible Python programming language and provides a simple template for web development. Once imported into Python, Flask can be used to save time building web applications. It goes against the flow with the microframework concept, leaving most of the architecture choices to the developer. Through its great API, extensions, and powerful patterns, Flask helps you create simple projects in minutes and complex ones as soon as possible.

From the beginning, Building Web Applications with Flask shows you how to utilize Flask's concepts, extensions, and components to create engaging, full-featured web projects. You'll learn how to properly handle forms using WTForms, devise convenient templates with Jinja2 tags and macros, use NoSQL and SQL databases to store user data, test your projects with features and unit tests, create powerful authentication and user authorization, as well as administrative interfaces with ease, and more.

As Flask does not enforce an architectural recipe, neither do we! This book makes no coding assumptions on how you should code, leaving you free to experiment.

Table of Contents

Chapter 1: Flask in a Flask, I Mean, Book
An introduction to Flask and its features
Summary
Chapter 2: First App, How Hard Could it Be?
Hello World
Prerequisites and tools
Setting up a virtual environment
Understanding the "Hello World" app
Serving HTML pages
Summary
Chapter 3: Man, Do I Like Templates!
What is Jinja2 and how is it coupled with Flask?
What can you do with Jinja2?
Summary
Chapter 4: Please Fill in This Form, Madam
HTML forms for the faint of heart
Handling forms
WTForms and you
Flask-WTF
Summary
Chapter 5: Where Do You Store Your Stuff?
SQLAlchemy
MongoDB
Relational versus NoSQL
Summary
Chapter 6: But I Wanna REST Mom, Now!
Beyond GET
Flask-Restless
Summary
Chapter 7: If Ain't Tested, It Ain't Game, Bro!
What kinds of test are there?
Fixtures
Summary
Chapter 8: Tips and Tricks or Flask Wizardry 101
Overengineering
Premature optimization
Blueprints 101
Oh God, please tell me you have the logs…
Debugging, DebugToolbar, and happiness
Sessions or storing user data between requests
Exercise
Summary
Chapter 9: Extensions, How I Love Thee
How to configure extensions
Flask-Principal and Flask-Login (aka Batman and Robin)
Summary
Chapter 10: What Now?
You deploy better than my ex
StackOverflow
Structuring your projects
Summary
Postscript

What You Will Learn

  • Create single page applications with Flask
  • Use macros, filters, tags, and control structures to render rich responses to user requests
  • Receive forms securely through form-based classes and WTForms
  • Utilize NoSQL or SQL databases to store user data seamlessly
  • Generate simple, yet powerful, REST services from your data models
  • Learn how to perform test-driven and behavior-driven developments in your Flask projects
  • Use Flask components to create maintainable non-flat projects
  • Harvest the power of extensions to build robust authorization and permission policies

Authors

Table of Contents

Chapter 1: Flask in a Flask, I Mean, Book
An introduction to Flask and its features
Summary
Chapter 2: First App, How Hard Could it Be?
Hello World
Prerequisites and tools
Setting up a virtual environment
Understanding the "Hello World" app
Serving HTML pages
Summary
Chapter 3: Man, Do I Like Templates!
What is Jinja2 and how is it coupled with Flask?
What can you do with Jinja2?
Summary
Chapter 4: Please Fill in This Form, Madam
HTML forms for the faint of heart
Handling forms
WTForms and you
Flask-WTF
Summary
Chapter 5: Where Do You Store Your Stuff?
SQLAlchemy
MongoDB
Relational versus NoSQL
Summary
Chapter 6: But I Wanna REST Mom, Now!
Beyond GET
Flask-Restless
Summary
Chapter 7: If Ain't Tested, It Ain't Game, Bro!
What kinds of test are there?
Fixtures
Summary
Chapter 8: Tips and Tricks or Flask Wizardry 101
Overengineering
Premature optimization
Blueprints 101
Oh God, please tell me you have the logs…
Debugging, DebugToolbar, and happiness
Sessions or storing user data between requests
Exercise
Summary
Chapter 9: Extensions, How I Love Thee
How to configure extensions
Flask-Principal and Flask-Login (aka Batman and Robin)
Summary
Chapter 10: What Now?
You deploy better than my ex
StackOverflow
Structuring your projects
Summary
Postscript

Book Details

ISBN 139781784396152
Paperback160 pages
Read More

Read More Reviews

Recommended for You

Flask By Example Book Cover
Flask By Example
$ 27.99
$ 10.00
Flask: Building Python Web Services Book Cover
Flask: Building Python Web Services
$ 79.99
$ 10.00
Building RESTful Python Web Services Book Cover
Building RESTful Python Web Services
$ 39.99
$ 10.00
Modern Python Cookbook Book Cover
Modern Python Cookbook
$ 39.99
$ 10.00
Bootstrap 4 By Example Book Cover
Bootstrap 4 By Example
$ 35.99
$ 10.00
Building Recommendation Engines Book Cover
Building Recommendation Engines
$ 39.99
$ 10.00