Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Flask Framework Cookbook
Flask Framework Cookbook

Flask Framework Cookbook: Enhance your Flask skills with advanced techniques and build dynamic, responsive web applications , Third Edition

eBook
€8.99 €23.99
Paperback
€29.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
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Flask Framework Cookbook

Part 1: Flask Fundamentals

As the name suggests, this part of the book focuses on the basic fundamental building blocks of any Flask web application. A clear understanding of these topics is essential to building scalable, configurable, and extensible web applications with Flask as we move to more complex topics.

Developers usually struggle with how to set up their Flask application configurations to suit different environments, such as development and production. At times, they might find it difficult to choose the best way to structure their Flask applications. The first chapter helps in answering such questions and many more.

The next three chapters focus on creating the foundational pillars of any web application – that is, models, views, and templates. A very important concept covered in these chapters concerns connecting multiple types of databases with your application.

The content in these chapters will be basic- to mid-level in complexity, and it will act as...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • A practical and rich companion guide for web developers, offering real-world situations and use cases to learn Flask
  • Get the most out of the powerful Flask framework while preserving the flexibility of your design choices
  • Write cleaner, testable, and maintainable code with the help of sample apps

Description

Discover what makes Flask, the lightweight Python web framework, popular, as you delve into its modular design that enables the development of scalable web apps. With this practical guide, you'll explore modern solutions, recommended design patterns, and best practices for Flask web development. Updated to the latest version of Flask and Python, this third edition of the Flask Framework Cookbook moves away from the outdated libraries, updates content to incorporate new coding patterns, and introduces recipes for the latest tools. You'll explore different ways to integrate with GPT to build AI-ready Flask applications. The book starts with an exploration of Flask application configurations and then guides you through working with templates and understanding the ORM and view layers. You’ll also be able to write an admin interface and get to grips with testing using the factory pattern, debugging, and logging errors. Then you’ll discover different ways of using Flask to create, deploy, and manage microservices using AWS, GCP, and Kubernetes. Finally, you’ll gain insights into various deployment and post-deployment techniques for platforms such as Apache, Tornado, and Datadog. By the end of this book, you'll have acquired the knowledge necessary to write Flask applications that cater to a wide range of use cases in the best possible way and scale them using standard industry practices.

Who is this book for?

If you are a web developer seeking to expand your knowledge of developing scalable and production-ready applications in Flask, this is the book for you. It is also highly valuable if you are already aware of Flask's major extensions and want to leverage them for better application development. This book will come handy as a quick reference for specific topic on Flask, its popular extensions, or specific use cases. It assumes basic Python programming experience, as well as familiarity with web development and related terminology.

What you will learn

  • Explore advanced templating and data modeling techniques
  • Discover effective debugging, logging, and error-handling techniques in Flask
  • Work with different types of databases, including RDBMS and NoSQL
  • Integrate Flask with different technologies such as Redis, Sentry, and Datadog
  • Deploy and package Flask applications with Docker and Kubernetes
  • Integrate GPT with your Flask application to build future-ready platforms
  • Implement continuous integration and continuous deployment (CI/CD) to ensure efficient and consistent updates to your Flask web applications

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jul 28, 2023
Length: 318 pages
Edition : 3rd
Language : English
ISBN-13 : 9781804610008
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
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Jul 28, 2023
Length: 318 pages
Edition : 3rd
Language : English
ISBN-13 : 9781804610008
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 97.97
50 Algorithms Every Programmer Should Know
€37.99
Flask Framework Cookbook
€29.99
Full-Stack Flask and React
€29.99
Total 97.97 Stars icon
Banner background image

Table of Contents

19 Chapters
Part 1: Flask Fundamentals Chevron down icon Chevron up icon
Chapter 1: Flask Configurations Chevron down icon Chevron up icon
Chapter 2: Templating with Jinja Chevron down icon Chevron up icon
Chapter 3: Data Modeling in Flask Chevron down icon Chevron up icon
Chapter 4: Working with Views Chevron down icon Chevron up icon
Part 2: Flask Deep Dive Chevron down icon Chevron up icon
Chapter 5: Web Forms with WTForms Chevron down icon Chevron up icon
Chapter 6: Authenticating in Flask Chevron down icon Chevron up icon
Chapter 7: RESTful API Building Chevron down icon Chevron up icon
Chapter 8: Admin Interface for Flask Apps Chevron down icon Chevron up icon
Chapter 9: Internationalization and Localization Chevron down icon Chevron up icon
Part 3: Advanced Flask Chevron down icon Chevron up icon
Chapter 10: Debugging, Error Handling, and Testing Chevron down icon Chevron up icon
Chapter 11: Deployment and Post-Deployment Chevron down icon Chevron up icon
Chapter 12: Microservices and Containers Chevron down icon Chevron up icon
Chapter 13: GPT with Flask Chevron down icon Chevron up icon
Chapter 14: Additional Tips and Tricks Chevron down icon Chevron up icon
Index 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 Full star icon Half star icon 4.8
(12 Ratings)
5 star 83.3%
4 star 8.3%
3 star 8.3%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Bohuslav Hošek Feb 08, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Feefo Verified review Feefo
Hemant Aug 17, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Flask Framework Cookbook is a robust resource for advancing Flask skills. While it assumes some familiarity with Flask, its comprehensive coverage and hands-on approach makes it an essential tool for developers seeking to elevate their Flask proficiency. It offers a comprehensive range of recipes, catering to both novice developers and seasoned pros. The step-by-step instructions will guide you through real-world scenarios, making complex concepts digestible.
Amazon Verified review Amazon
Not Your Average Consumer Aug 04, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book takes a practical, hands-on approach, providing numerous real-world examples that are easy to follow.One thing that stood out to me was how the book keeps up with the latest trends and technologies. The fact that it's updated to the most recent version of Flask and Python instantly won my confidence. The inclusion of AI integration with GPT opened up a whole new realm of possibilities for my projects.Another one of my favorite parts of the book was discovering how to create microservices using Flask on platforms like AWS, GCP, and Kubernetes. It gave me the confidence to experiment with distributed applications and explore new frontiers.What sets this book apart is how it caters to developers of all levels. Whether you're a Flask beginner or someone with prior experience, the book ensures you'll learn something new and find inspiration for your projects. The well-organized content and clear explanations make it an excellent reference for both learning and problem-solving.
Amazon Verified review Amazon
Ian Propst-Campbell Aug 06, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a comprehensive overview of the Flask framework, complete with lots of real life code samples and helpful tips about Flask implementation. An important and valuable resource for any developer learning or using the Flask framework.
Amazon Verified review Amazon
Amazon Customer Jul 30, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
"Flask Framework Cookbook" is a comprehensive and well-crafted book that caters to web developers of all levels. From foundational concepts like Flask configurations and setting up virtual environments to advanced topics such as authentication, RESTful API building, and GPT applications, the book covers a wide range of essential subjects.The author's lucid explanations, practical examples, and humane tone make learning Flask a delightful experience. Moreover, the book's inclusion of cutting-edge technologies like GPT-based applications adds a forward-looking perspective, making it stand out among other Flask resources. Whether you're a beginner or an experienced developer, this book equips you with the knowledge and confidence to build robust and sophisticated web applications.Highly recommended! Happy coding!
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.