Jump to ratings and reviews
Rate this book

Flask By Example

Rate this book
Unleash the full potential of the Flask web framework by creating simple yet powerful web applications

About This BookThe most up-to-date book on Flask on the marketCreate your own world-class applications and master the art of Flask by unravelling its enigma through this journeyThis step-by-step tutorial is packed with examples on blending different technologies with Flask to get you up and runningWho This Book Is ForHave you looked at PHP and hated the clunky bloated syntax? Or looked at .Net and wished it was more open and flexible? Maybe you've tried your hand at GUI libraries in Python and found them hard to use? If your answer to any one of these questions is a yes, then this is just the book for you.

It is also intended for people who know the basics of Python and want to learn how to use it to build powerful solutions with a web front-end.

What You Will LearnBuild three web applications from the ground up using the powerful Python micro framework, Flask.Dynamically display data to your viewers, based on their requestsStore user and static data in SQL and NoSQL databases and use this data to power your web applicationsCreate a good user experience by combining HTML, CSS, and JavaScriptHarness the convenience of freely available APIs, including OpenWeatherMap, Open Exchange Rates, and bitlyExtend your applications to build advanced functionality, such as a user account control system using Flask-LoginLearn about web application security and defend against common attacks, such as SQL injection and XSSIn DetailThis book will take you on a journey from learning about web development using Flask to building fully functional web applications. In the first major project, we develop a dynamic Headlines application that displays the latest news headlines along with up-to-date currency and weather information. In project two, we build a Crime Map application that is backed by a MySQL database, allowing users to submit information on and the location of crimes in order to plot danger zones and other crime trends within an area. In the final project, we combine Flask with more modern technologies, such as Twitter's Bootstrap and the NoSQL database MongoDB, to create a Waiter Caller application that allows restaurant patrons to easily call a waiter to their table. This pragmatic tutorial will keep you engaged as you learn the crux of Flask by working on challenging real-world applications.

Style and approach This book will provide you with rich, practical experience of Flask. Every technology, that is employed along with Flask is comprehensively introduced, while the book focusses on developing web applications. Pointers to educational material are always given if you want to gain in-depth knowledge of the various technologies used.

278 pages, Kindle Edition

Published March 31, 2016

7 people are currently reading
15 people want to read

About the author

Gareth Dwyer

4 books

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
5 (27%)
4 stars
5 (27%)
3 stars
7 (38%)
2 stars
1 (5%)
1 star
0 (0%)
Displaying 1 - 4 of 4 reviews
Profile Image for Vishwanath.
45 reviews8 followers
October 9, 2016
This book is a refreshing change from most Flask books on the market that essentially use Flask to set up the same (now mundane) microblog example. The author takes a refreshing new approach and covers 3 applications (including one with a mysql backend and one with mongo) that expose the flexbility of the flask framework. The book has not been updated to python 3 which is a minor irritant but the example code can easily be refactored to work on a 3 environment.
Profile Image for Andi Dirgantara.
33 reviews
October 4, 2017
Great for beginner who want to learn Flask, with a lot of straight forward examples. Cover almost everything we needs to run web server by Flask from development until deployment on production; from testing, mocking, until connecting to databases. But if you already an expert in other web server framework or language, this book might be boring.

Very recommended for those who want to learn Flask, with a lot of examples, yes as intended on the title.
Profile Image for Omar Elgazzar.
1 review
March 11, 2018
A great book that provides a foundation for web development using flask. The best thing about it, that it teaches the basics of web development using flask as tool rather than being an extensive and exclusive flask tutorial. I learned a lot from this book.
Profile Image for Alex.
168 reviews19 followers
November 10, 2016
It's pretty practical for the beginner, since it actually focuses more on the things like setting up the environment, deploying, connecting to the web server or managing the database, then the Flask itself.
So I could recommend it for someone who's making the first steps in building a typical website powered by Flask.
However, I won't recommend it if you want to learn about Flask itself, since it only covers the very basic things and all the example projects are super simple.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.