Flask by example unleash the full potential of the Flask web framework by creating simple yet powerful web applications

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 T...

Full description

Bibliographic Details
Main Author: Dwyer, Gareth
Format: eBook
Language:English
Published: Birmingham, UK Packt Publishing 2016
Series:Community experience distilled
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
LEADER 07230nmm a2200553 u 4500
001 EB001921307
003 EBX01000000000000001084209
005 00000000000000.0
007 cr|||||||||||||||||||||
008 210123 ||| eng
020 |a 9781785283482 
050 4 |a QA76.76.A65 
100 1 |a Dwyer, Gareth 
245 0 0 |a Flask by example  |b unleash the full potential of the Flask web framework by creating simple yet powerful web applications  |c Gareth Dwyer 
260 |a Birmingham, UK  |b Packt Publishing  |c 2016 
300 |a 1 volume  |b illustrations 
505 0 |a Using cookies with FlaskSetting cookies in Flask; Retrieving cookies in Flask; Adding CSS to our Headlines application; External, internal, and inline CSS; Adding our first CSS; Adding padding to our CSS; Adding more styles to our CSS; Adding the div tags to the template file; Styling our inputs; Summary; Chapter 6: Building an Interactive Crime Map; Setting up a new Git repository; Understanding relational databases; Installing and configuring MySQL on our VPS; Installing MySQL on our VPS; Installing Python drivers for MySQL; Creating our Crime Map database in MySQL 
505 0 |a Setting up our project and a Git repositoryCreating a new Flask application; Introduction to RSS and RSS feeds; Using RSS from Python; URL routing in Flask; Publishing our Headlines application; Summary; Chapter 3: Using Templates in Our Headlines Project; Introducing Jinja; Basic use of Jinja templates; Rendering a basic template; Passing dynamic data to our template; Displaying dynamic data in our template; Advanced use of Jinja templates; Using Jinja objects; Adding looping logic to our template; Adding hyperlinks to our template; Pushing our code to the server; Summary 
505 0 |a Chapter 4: User Input for Our Headlines ProjectGetting user input using HTTP GET; Getting user input using HTTP POST; Creating a branch in Git; Adding POST routes in Flask; Making our HTML form use POST; Reverting our Git repository; Adding weather and currency data; Introducing the OpenWeatherMap API; Signing up with OpenWeatherMap; Retrieving your OpenWeatherMap API key; Parsing JSON with Python; Introducing JSON; Retrieving and parsing JSON in Python; Using our weather code; Displaying the weather data; Allowing the user to customize the city; Adding another search box to our template 
505 0 |a Using the user's city search in our Python codeChecking our new functionality; Handling duplicate city names; Currency; Getting an API key for the Open Exchange Rates API; Using the Open Exchange Rates API; Using our currency function; Displaying the currency data in our template; Adding inputs for the user to select currency; Creating an HTML select drop-down element; Adding all the currencies to the select input; Displaying the selected currency in the drop-down input; Summary; Chapter 5: Improving the User Experience of Our Headlines Project; Adding cookies to our Headlines application 
505 0 |a Cover ; Copyright; Credits; About the Author; Acknowledgements; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Hello, World!; Introducing Flask; Creating our development environment; Installing pip; Installing Flask; Writing ""Hello, World!""; Writing the code; Running the code; Deploying our application to production; Setting up a Virtual Private Server; Configuring our server; Installing and using Git; Serving our Flask app with WSGI; Configuring Apache to serve our Flask application; Summary; Chapter 2: Getting Started with Our Headlines Project 
653 |a Python (Computer program language) / http://id.loc.gov/authorities/subjects/sh96008834 
653 |a Applications Web / Développement 
653 |a Python (Computer program language) / fast 
653 |a Applications Web / Programmation 
653 |a COMPUTERS / Programming Languages / Python / bisacsh 
653 |a Application Development / bisacsh/2013 
653 |a Programming Languages / bisacsh/2013 
653 |a Internet / bisacsh/2013 
653 |a Python (Langage de programmation) 
653 |a COMPUTERS. / bisacsh/2013 
653 |a Web applications / Development 
653 |a Python / bisacsh/2013 
653 |a Web / bisacsh/2013 
653 |a Web applications / Programming 
041 0 7 |a eng  |2 ISO 639-2 
989 |b OREILLY  |a O'Reilly 
490 0 |a Community experience distilled 
500 |a Includes index 
015 |a GBC1J1665 
776 |z 1785283480 
776 |z 9781785283482 
776 |z 9781785286933 
776 |z 1785286935 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781785286933/?ar  |x Verlag  |3 Volltext 
082 0 |a 005.3 
520 |a 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 ... 
520 |a Dynamically display data to your viewers, based on their requests Store user and static data in SQL and NoSQL databases and use this data to power your web applications Create a good user experience by combining HTML, CSS, and JavaScript Harness the convenience of freely available APIs, including OpenWeatherMap, Open Exchange Rates, and bitly Extend your applications to build advanced functionality, such as a user account control system using Flask-Login Learn about web application security and defend against common attacks, such as SQL injection and XSS In Detail This 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.  
520 |a Unleash the full potential of the Flask web framework by creating simple yet powerful web applications About This Book The most up-to-date book on Flask on the market Create your own world-class applications and master the art of Flask by unravelling its enigma through this journey This step-by-step tutorial is packed with examples on blending different technologies with Flask to get you up and running Who This Book Is For Have 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 Learn Build three web applications from the ground up using the powerful Python micro framework, Flask.