Flask By Example
暫譯: Flask 實戰範例

Gareth Dwyer

  • 出版商: Packt Publishing
  • 出版日期: 2016-03-29
  • 售價: $1,670
  • 貴賓價: 9.5$1,587
  • 語言: 英文
  • 頁數: 276
  • 裝訂: Paperback
  • ISBN: 1785286935
  • ISBN-13: 9781785286933
  • 相關分類: Flask
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

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.
  • 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. 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 with rich, practical experience of Flask. Every technology, that is employed along with Flask is comprehensively introduced, while the book focusses on developing web applications. Pointers to educational material are always given if you want to gain in-depth knowledge of the various technologies used.

商品描述(中文翻譯)

釋放 Flask 網頁框架的全部潛力,創建簡單而強大的網頁應用程式

關於本書


  • 市場上最新的 Flask 書籍

  • 通過這段旅程解開 Flask 的謎團,創建您自己的世界級應用程式並掌握 Flask 的藝術

  • 這本逐步教程充滿了將不同技術與 Flask 結合的範例,幫助您快速上手

本書適合誰

您是否曾經看過 PHP,並厭惡其笨重的語法?或者看過 .Net,並希望它能更開放和靈活?也許您嘗試過 Python 的 GUI 庫,卻發現它們難以使用?如果您對這些問題中的任何一個回答是肯定的,那麼這本書正是為您而寫。

本書也適合那些了解 Python 基礎並希望學習如何使用它來構建具有網頁前端的強大解決方案的人。

您將學到什麼


  • 使用強大的 Python 微框架 Flask 從零開始構建三個網頁應用程式。

  • 根據用戶的請求動態顯示數據給觀眾

  • 在 SQL 和 NoSQL 數據庫中存儲用戶和靜態數據,並使用這些數據為您的網頁應用程式提供支持

  • 通過結合 HTML、CSS 和 JavaScript 創造良好的用戶體驗

  • 利用免費可用的 API,包括 OpenWeatherMap、Open Exchange Rates 和 bitly

  • 擴展您的應用程式以構建高級功能,例如使用 Flask-Login 的用戶帳戶控制系統

  • 了解網頁應用程式安全性,並防範常見攻擊,如 SQL 注入和 XSS

詳細內容

本書將帶您從學習使用 Flask 進行網頁開發到構建功能完整的網頁應用程式。在第一個主要項目中,我們開發一個動態的 Headlines 應用程式,顯示最新的新聞標題以及最新的貨幣和天氣資訊。在第二個項目中,我們構建一個 Crime Map 應用程式,該應用程式由 MySQL 數據庫支持,允許用戶提交有關犯罪的信息及其位置,以便繪製危險區域和其他犯罪趨勢。在最後一個項目中,我們將 Flask 與更現代的技術結合,如 Twitter 的 Bootstrap 和 NoSQL 數據庫 MongoDB,創建一個 Waiter Caller 應用程式,讓餐廳顧客能夠輕鬆呼叫服務生到他們的桌子。這本實用的教程將讓您在處理具有挑戰性的現實世界應用程式時,深入了解 Flask 的核心。

風格與方法

本書將為您提供豐富的 Flask 實踐經驗。每一種與 Flask 一起使用的技術都會被全面介紹,而本書專注於開發網頁應用程式。如果您想深入了解所使用的各種技術,書中也會提供指向教育材料的參考。

最後瀏覽商品 (20)