Have a personal or library account? Click to login
Mastering Flask Cover

Mastering Flask

Gain expertise in Flask to create dynamic and powerful web applications

Paid access
|Oct 2015
Product purchase options

Gain expertise in Flask to create dynamic and powerful web applications

Key Features

  • Work with scalable Flask application structures to create complex web apps
  • Discover the most powerful Flask extensions and learn how to create one
  • Deploy your application to real-world platforms using this step-by-step guide
  • s

Book Description

Starting from a simple Flask app, this book will walk through advanced topics while providing practical examples of the lessons learned. After building a simple Flask app, a proper app structure is demonstrated by transforming the app to use a Model-View-Controller (MVC) architecture. With a scalable structure in hand, the next chapters use Flask extensions to provide extra functionality to the app, including user login and registration, NoSQL querying, a REST API, an admin interface, and more. Next, you’ll discover how to use unit testing to take the guesswork away from making sure the code is performing as it should. The book closes with a discussion of the different platforms that are available to deploy a Flask app on, the pros and cons of each one, and how to deploy on each one.

What you will learn

  • Set up a best practices Python environment
  • Use SQLAlchemy to programmatically query a database
  • Develop templates in Jinja
  • Set up an MVC environment for Flask
  • Discover NoSQL, when to use it, when not to, and how to use it
  • Develop a custom Flask extension
  • Use Celery to create asynchronous tasks

Who this book is for

If you are a Flask user who knows the basics of the library and how to create basic web pages with HTML and CSS, and you want to take your applications to the next level, this is the book for you. Harnessing the full power of Flask will allow you to create complex web applications with ease.

Table of Contents

  1. Getting Started
  2. Creating Models With SQL-Alchemy
  3. Creating Views with Templates
  4. Creating Controllers with Blueprints
  5. Advanced Application Structure
  6. Securing Your App
  7. Using NoSQL With Flask
  8. Building RESTful APIs
  9. Creating Asynchronous Tasks With Celery
  10. Useful Flask Extensions
  11. Building Your Own Extension
  12. Testing Flask Apps
  13. Deploying Flask Apps
https://github.com/packtpublishing/mastering-flask
PDF ISBN: 978-1-78439-192-8
Publisher: Packt Publishing Limited
Copyright owner: © 2015 Packt Publishing Limited
Publication date: 2015
Language: English
Pages: 288