2 options
Flask framework cookbook : over 80 hands-on recipes to help you create small-to-large web applications using Flask / Shalabh Aggarwal ; cover image by Pratyush Mohanta.
- Format:
- Book
- Author/Creator:
- Aggarwal, Shalabh, author.
- Language:
- English
- Subjects (All):
- Web portals--Design.
- Web portals.
- Web applications.
- Physical Description:
- 1 online resource (258 p.)
- Edition:
- 1st edition
- Other Title:
- Over 80 hands-on recipes to help you create small-to-large web applications using Flask
- Place of Publication:
- Birmingham, England : Packt Publishing, 2014.
- Language Note:
- English
- System Details:
- text file
- Biography/History:
- Aggarwal Shalabh: Shalabh Aggarwal is a seasoned engineering leader who develops and manages enterprise systems and web and mobile applications for small- and large-scale organizations. He started his career working with 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 high-quality code. Throughout his career, he has built software products and engineering teams for companies moving from 0 to 1, 1 to 10, and 10 to 100 levels. He is also active in voluntary training for engineering students and young engineers on non-conventional and open source topics. When not working with full-time assignments, he consults for start-ups on starting or scaling up while leveraging different technologies. When not writing code, he dedicates his time to his young kid and occasional travels.
- Summary:
- ""If you are a web developer who wants to learn more about developing applications in Flask and scale them with industry-standard practices, this is the book for you. This book will also act as a handy tool if you are aware of Flask's major extensions and want to make the best use of them. It is assumed that you have knowledge of Python and a basic understanding of Flask. If you are completely new to Flask, reading the book from the first chapter and going forward will help in getting acquainted with Flask as you go ahead.""
- Contents:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Flask Configurations; Introduction; Environment setup with virtualenv; Handling basic configurations; Class-based settings; Organization of static files; Being deployment specific with instance folders; Composition of views and models; Creating a modular web app with blueprints; Making a Flask app installable using setuptools; Chapter 2: Templating with Jinja2; Introduction; Bootstrap layout; Block composition and layout inheritance; Creating a custom context processor
- Creating a custom Jinja2 filterCreating a custom macro for forms; Advanced date and time formatting; Chapter 3: Data Modeling in Flask; Introduction; Creating a SQLAlchemy DB instance; Creating a basic product model; Creating a relational category model; Database migration using Alembic and Flask-Migrate; Model data indexing with Redis; Opting the NoSQL way with MongoDB; Chapter 4: Working with Views; Introduction; Writing function-based views and URL routes; Class-based views; URL routing and product-based pagination; Rendering to templates; Dealing with XHR requests
- Decorator to handle requests beautifullyCreating custom 404 and 500 handlers; Flashing messages for better user feedback; SQL-based searching; Chapter 5: Webforms with WTForms; Introduction; SQLAlchemy model data as form representation; Validating fields on the server side; Creating a common forms set; Creating custom fields and validation; Creating a custom widget; Uploading files via forms; Cross-site Request Forgery protection; Chapter 6: Authenticating in Flask; Introduction; Simple session-based authentication; Authenticating using the Flask-Login extension
- Using OpenID for authenticationUsing Facebook for authentication; Using Google for authentication; Using Twitter for authentication; Chapter 7: RESTful API Building; Introduction; Creating a class-based REST interface; Creating an extension-based REST interface; Creating a SQLAlchemy-independent REST API; A complete REST API example; Chapter 8: Admin Interface for Flask Apps; Introduction; Creating a simple CRUD interface; Using the Flask-Admin extension; Registering models with Flask-Admin; Creating custom forms and actions; WYSIWYG for textarea integration; Creating user roles
- Chapter 9: Internationalization and LocalizationIntroduction; Adding a new language; Lazy evaluation and the gettext/ngettext functions; Global language-switching action; Chapter 10: Debugging, Error Handling, and Testing; Introduction; Setting up basic file logging; Sending e-mails on the occurrence of errors; Using Sentry to monitor exceptions; Debugging with pdb; Creating our first simple test; Writing more tests for views and logic; Nose library integration; Using mocking to avoid real API access; Determining test coverage; Using profiling to find bottlenecks
- Chapter 11: Deployment and Post Deployment
- Notes:
- "Quick answers to common problems"--Cover.
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed December 16, 2014).
- ISBN:
- 9781783983414
- 1783983418
- OCLC:
- 899243180
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.