Custom cover image
Custom cover image

Flask Blueprints / Joel Perras

By: Resource type: Ressourcentyp: Buch (Online)Book (Online)Language: English Series: Community experience distilledPublisher: Birmingham : Packt Publishing Ltd, 2015Publisher: Birmingham, UNKNOWN : Packt PublishingEdition: 1Description: 1 online resource (198)ISBN:
  • 9781784397340
  • 1784397342
  • 9781784394783
Subject(s): Additional physical formats: 1784397342. | 9781784397340. LOC classification:
  • T55
  • TK5105.875.I6
Online resources:
Contents:
Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Starting on the Right Foot - Using Virtualenv; Setuptools and pip; Avoiding dependency hell, the Python way; Working with virtualenv; Creating a new virtual environment; Activating and deactivating virtual environments; Adding packages to an existing environment; Uninstalling packages from an existing environment; Simplifying common operations - using the virtualenvwrapper tool; Summary; Chapter 2: Small to Big - Growing the Flask Application Structure
Your first Flask application structureFrom module to package; From package to blueprint; Our first blueprint; Summary; Chapter 3: Snap - the Code Snippet Sharing Application; Getting started; Flask-SQLAlchemy; Configuring Flask-SQLAlchemy; SQLAlchemy basics; Snap data models; Flask-Login and Flask-Bcrypt for authentication; Flask-WTF - form validation and rendering; Hashing user passwords; Configure an application SECRET_KEY; Hook up the blueprint; Let's run this thing; The data model for snaps; Better defaults with content-sensitive default functions; Snap view handlers; Summary
Chapter 4: Socializer - the Testable TimelineStarting off; Application factories; The application context; Instantiating an app object; Unit and functional testing; Social features - friends and followers; Functional and integration testing; Publish/subscribe events with Blinker; Signals from Flask and extensions; Creating custom signals; Graceful handling of exceptions; Functional testing; Your newsfeed; Summary; Chapter 5: Shutterbug, the Photo Stream API; Starting off; The application factory; Interlude - Werkzeug; Simple APIs with Flask-RESTful
Improved password handling with hybrid attributesAPI authentication; Authentication protocols; Getting users; Creating new users; API testing; Interlude - Werkzeug middlewares; Back to Shutterbug - uploading photos; Testing the photo uploads; Fetching the user's photos; Summary; Chapter 6: Hublot - Flask CLI Tools; Starting off; The manage.py file; The built-in default commands; The Flask-Script commands across Blueprints; Submanagers; The required and optional arguments; Flask extensions - the basics; When should an extension be used?; Our extension - GitHubber; Summary
Chapter 7: Dinnerly - Recipe SharingFirst OAuth; Why use OAuth?; Terminology; So what's wrong with OAuth 1.0?; Three-legged authorization; Setting up the application; Declaring our models; Handling OAuth in our views; Creating recipes; Posting recipes to Twitter and Facebook; SQLAlchemy events; Finding common friends; Interlude - database migrations; Alembic; Summary; Index
Summary: Cover -- Copyright -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Table of Contents -- Preface -- Chapter 1: Starting on the Right Foot - Using Virtualenv -- Setuptools and pip -- Avoiding dependency hell, the Python way -- Working with virtualenv -- Creating a new virtual environment -- Activating and deactivating virtual environments -- Adding packages to an existing environment -- Uninstalling packages from an existing environment -- Simplifying common operations - using the virtualenvwrapper tool -- Summary -- Chapter 2: Small to Big - Growing the Flask Application Structure -- Your first Flask application structure -- From module to package -- From package to blueprint -- Our first blueprint -- Summary -- Chapter 3: Snap - the Code Snippet Sharing Application -- Getting started -- Flask-SQLAlchemy -- Configuring Flask-SQLAlchemy -- SQLAlchemy basics -- Snap data models -- Flask-Login and Flask-Bcrypt for authentication -- Flask-WTF - form validation and rendering -- Hashing user passwords -- Configure an application SECRET_KEY -- Hook up the blueprint -- Let's run this thing -- The data model for snaps -- Better defaults with content-sensitive default functions -- Snap view handlers -- Summary -- Chapter 4: Socializer - the Testable Timeline -- Starting off -- Application factories -- The application context -- Instantiating an app object -- Unit and functional testing -- Social features - friends and followers -- Functional and integration testing -- Publish/subscribe events with Blinker -- Signals from Flask and extensions -- Creating custom signals -- Graceful handling of exceptions -- Functional testing -- Your newsfeed -- Summary -- Chapter 5: Shutterbug, the Photo Stream API -- Starting off -- The application factory -- Interlude - Werkzeug -- Simple APIs with Flask-RESTful.PPN: PPN: 860191141Package identifier: Produktsigel: ZDB-26-MYL | ZDB-30-PQE
No physical items for this record