Mastering Flask

Mastering Flask
Authors
Stouffer, Jack
Publisher
Packt Publishing
Tags
python , programming
Date
2015-09-30T00:00:00+00:00
Size
3.12 MB
Lang
en
Downloaded: 265 times

About This BookWork with scalable Flask application structures to create

complex web appsDiscover the most powerful Flask extensions and learn how to

create oneDeploy your application to real-world platforms using this step-by-

step guideWho This Book Is ForIf 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.What You

Will LearnSet up a best practices Python environmentUse SQLAlchemy to

programmatically query a databaseDevelop templates in JinjaSet up an MVC

environment for FlaskDiscover NoSQL, when to use it, when not to use it, and

how to use itDevelop a custom Flask extensionUse Celery to create asynchronous

tasksUse py.test to create unit testsIn Detail

Flask is a microframework that boasts a low learning curve, a large community,

and the power to create complex web apps. It is easy to learn but difficult to

master.

Starting from a simple Flask app, this book will walk through advanced topics

while providing practical examples. 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 be. The book closes with a discussion of the different

platforms that are available to deploy a Flask app on, with the pros and cons

of each one taken into account.