/Flask-Framework-Cookbook-Second-Edition

Flask Framework Cookbook - Second Edition, published by Packt

Primary LanguagePythonMIT LicenseMIT

Flask Framework Cookbook

Flask Framework Cookbook

This is the code repository for Flask Framework Cookbook, published by Packt.

Over 80 proven recipes and techniques for Python web development with Flask

What is this book about?

Flask, the lightweight Python web framework, is popular due 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.

This book covers the following exciting features:

  • 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

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

from flask import Flask 
app = Flask(__name__) 
 
@app.route('/') 
def hello_world(): 
    return 'Hello to the World of Flask!' 
 
if __name__ == '__main__': 
    app.run() 

Following is what you need for this book:

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.

With the following software and hardware list you can run all code files present in the book (Chapter 1-13).

Software and Hardware List

Chapter Software required OS required
1 Flask, Virtualenv, virtualenvwrapper Windows, Mac OS X, and Linux (Any)
2 Twitter Bootstrap, ccy, Moment.js Windows, Mac OS X, and Linux (Any)
3 Flask-sqlalchemy, requests, Windows, Mac OS X, and Linux (Any)
Redis, Flask-Migrate, Flask-mongoengine,
4 - -
5 Wtforms, Flask-WTF Windows, Mac OS X, and Linux (Any)
6 Flask-Login, pyOpenSSL, Flask-Dance, Windows, Mac OS X, and Linux (Any)
python-ldap
7 Flask-Restful, requests Windows, Mac OS X, and Linux (Any)
8 Flask-Admin, CKEditor.js Windows, Mac OS X, and Linux (Any)
9 Flask-Babel Windows, Mac OS X, and Linux (Any)
10 sentry-sdk, Nose, geoip2, Coverage Windows, Mac OS X, and Linux (Any)
11 mod_wsgi, Nginx, uwsgi, gunicorn, Windows, Mac OS X, and Linux (Any)
supervisor, Tornado, boto3, newrelic,
Heroku CLI, AWS Elastic Beanstalk setup
12 Docker, Minikube, zappa Windows, Mac OS X, and Linux (Any)
13 Flask-WhooshAlchemy, elasticsearch python Windows, Mac OS X, and Linux (Any)
library, Elasticsearch, Flask-Caching,
Flask-Mail, Celery

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Shalabh Aggarwal has more than 10 years' experience in developing and managing enterprise systems, as well as web and mobile applications for small-to large-scale industries. He started his career working on Python, and although he now works on multiple technologies, he remains a Python developer at heart. He is passionate about open source technologies and writes highly readable and quality code. He is also active in voluntary training for engineering students on non-conventional and open source topics. When not working with full-time assignments, he consults for start-ups on leveraging different technologies. When not writing code, he writes technical and nontechnical literature, which is published across multiple blogs.

Other books by the authors

Suggestions and Feedback

Click here if you have any feedback or suggestions.