Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Flask Framework Cookbook
Flask Framework Cookbook

Flask Framework Cookbook: Over 80 proven recipes and techniques for Python web development with Flask , Second Edition

eBook
€28.99 €41.99
Paperback
€52.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

Flask Framework Cookbook

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Explore Flask 1.0.3 and Python 3.7, along with useful insights into microservices
  • Get the most out of the powerful Flask framework and maintain the flexibility of your design choices
  • Write cleaner and maintainable code with the help of sample apps

Description

Flask, the lightweight Python web framework, is popular thanks to its powerful modular design that lets you build scalable web apps. With this recipe-based guide, you’ll explore modern solutions and best practices for Flask web development. Updated to the latest version of Flask and Python 3, this second edition of Flask Framework Cookbook moves away from some of the old and obsolete libraries and introduces new recipes on cutting-edge technologies. You’ll discover different ways of using Flask to create, deploy, and manage microservices. This Flask Python book starts by covering the different configurations that a Flask application can make use of, and then helps you work with templates and learn about the ORM and view layers. You’ll also be able to write an admin interface and get to grips with debugging and logging errors. Finally, you’ll learn a variety of deployment and post-deployment techniques for platforms such as Apache, Tornado, and Heroku. By the end of this book, you’ll have gained all the knowledge you need to confidently write Flask applications and scale them using standard industry practices.

Who is this book for?

If you are a web developer who wants to learn more about developing scalable and production-ready applications in Flask, this is the book for you. You’ll also find this book useful if you are already aware of Flask's major extensions and want to use them for better application development. Basic Python programming experience along with basic understanding of Flask is assumed.

What you will learn

  • Explore web application development in Flask, right from installation to post-deployment stages
  • Make use of advanced templating and data modeling techniques
  • Discover effective debugging, logging, and error handling techniques in Flask
  • Integrate Flask with different technologies such as Redis, Sentry, and MongoDB
  • Deploy and package Flask applications with Docker and Kubernetes
  • Design scalable microservice architecture using AWS Lambda continuous integration and continuous deployment

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 17, 2019
Length: 302 pages
Edition : 2nd
Language : English
ISBN-13 : 9781789953169
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning

Product Details

Publication date : Jul 17, 2019
Length: 302 pages
Edition : 2nd
Language : English
ISBN-13 : 9781789953169
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 115.97
Flask Framework Cookbook
€52.99
Mastering Flask Web Development
€32.99
Python API Development Fundamentals
€29.99
Total 115.97 Stars icon

Table of Contents

14 Chapters
Flask Configurations Chevron down icon Chevron up icon
Templating with Jinja2 Chevron down icon Chevron up icon
Data Modeling in Flask Chevron down icon Chevron up icon
Working with Views Chevron down icon Chevron up icon
Webforms with WTForms Chevron down icon Chevron up icon
Authenticating in Flask Chevron down icon Chevron up icon
RESTful API Building Chevron down icon Chevron up icon
Admin Interface for Flask Apps Chevron down icon Chevron up icon
Internationalization and Localization Chevron down icon Chevron up icon
Debugging, Error Handling, and Testing Chevron down icon Chevron up icon
Deployment and Post-Deployment Chevron down icon Chevron up icon
Microservices and Containers Chevron down icon Chevron up icon
Other Tips and Tricks Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.5
(11 Ratings)
5 star 54.5%
4 star 9.1%
3 star 0%
2 star 9.1%
1 star 27.3%
Filter icon Filter
Top Reviews

Filter reviews by




Rajendra Sharma Sep 05, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
He had the most sagacious way to structure the book and very well laid out with wonderful examples.He teaches all the new concepts via an actual app that you can make along with him. What makes this especially amazing/helpful is the subject matter itself.
Amazon Verified review Amazon
Richard Jun 04, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
i've been using python flask and django [with bulma and bootstrap] for a good while now and until now i much preferred django as a web framework as it is very powerful and flask comes as a bare bones framework with very little out of the box.i've read the usual flask reference books and although they are comprehensive they can be verbose and it's not so easy to find the snippets that you need.this book is well organised, presented and cross referenced so that you can go to relevant sections in a flash.my motivation for choosing this book was to understand flask blueprints better as i was getting annoying circular imports. not only can i now organise my code but i have an excellent reference collection of extensions that i can use out of the box to make my apps much more functional.highly recommended
Amazon Verified review Amazon
debashish Feb 21, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Concise introductions to a broad range of Flask topics.
Amazon Verified review Amazon
Ashish Desai Apr 12, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Perfect book for folks who are used to pgrogramming and need a quick reference to solve a specific scenario. Covers most use cases any developer will encounter during 90% of their dev time
Amazon Verified review Amazon
Alex Sep 11, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It's a great book and I used it to create several services, but I just wish I had not started with Flask but used Django instead. Yes, you can get a webserver running with five lines of code and you can build everything using Flask and SqlAlchemy and you can also build a house only using a screwdriver and enough determination.But if you want to build a serious web application and need a lot of features, just do yourself a favour, stop here and start learning Django.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.