Instant Flask Web Development
暫譯: 即時 Flask 網頁開發
Ron DuPlain
- 出版商: Packt Publishing
- 出版日期: 2013-09-08
- 售價: $1,130
- 貴賓價: 9.5 折 $1,074
- 語言: 英文
- 頁數: 78
- 裝訂: Paperback
- ISBN: 1782169628
- ISBN-13: 9781782169628
-
相關分類:
Flask
海外代購書籍(需單獨結帳)
商品描述
Impatient for results? This is a fast, concise guide to the essentials of Flask with a totally practical approach that means you'll be up and running on your first Flask app before you know it.
- Learn something new in an Instant! A short, fast, focused guide delivering immediate results
- Build a small but complete web application with Python and Flask
- Explore the basics of web page layout using Twitter Bootstrap and jQuery
- Get to know how to validate data entry using HTML forms and WTForms
- Understand SQLAlchemy and relational databases
In Detail
Flask is a web framework for Python, which lets you start simply and grow carefully without facing any issues with the framework as your project gets large. Flask integrates Werkzeug (a web programming toolkit) and Jinja (a templating engine) and adds a layer that lets you build web applications and services in a compact way, while letting you choose your own tools.
Instant Flask Web Development takes you beyond the quick start in the Flask documentation and shows you a bottom-up approach to organizing your Flask application. It shows you how to build a small deployable scheduling application with pointers to the various design decisions you can make when developing with Flask.
Instant Flask Web Development lets you set up your development environment and learn how Flask handles web requests, then shows you how to build a functional data-driven web application that is ready to publish, by adding one layer at a time. When working with Flask, you can work with Python and utilize its best tools for the job. The book will help you build the layers of a simple application: URL routes with Flask, a database with SQLAlchemy, form validation with WTForms, user authentication and sessions, page layout with Twitter Bootstrap, and browser code with jQuery.
This book promises to get you up and running on your first Flask app, so that you can use Flask and Python on your next web project.
What you will learn from this book
- Manage your project dependencies using virtualenv
- Understand how Flask provides URL routing and web request handling
- Recognize how Flask serves static files on disk
- Learn about modeling, storing, and querying data with SQLAlchemy
- Present HTML forms and validate input with WTForms
- Build a page layout with Twitter Bootstrap using a base Jinja template
- Create, recall, update, delete, and list database records
- Build custom template filters in Jinja to format data
- Authenticate users and maintain sessions
Approach
Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. The book uses a bottom-up approach to help you build applications, and is full of step-by-step instructions and practical examples to help you improve your knowledge.
Who this book is written for
Instant Flask Web Development is for developers who are new to web programming, or are familiar with web programming but new to Flask. This book gives you a head start if you have some beginner experience with Python and HTML, or are willing to learn.
商品描述(中文翻譯)
急於看到結果嗎?這是一本快速、簡潔的 Flask 基礎指南,採用完全實用的方法,讓您在不知不覺中就能啟動您的第一個 Flask 應用程式。
- 瞬間學習新知!一本短小、快速、專注的指南,提供即時結果
- 使用 Python 和 Flask 建立一個小而完整的網頁應用程式
- 探索使用 Twitter Bootstrap 和 jQuery 的網頁佈局基礎
- 了解如何使用 HTML 表單和 WTForms 驗證資料輸入
- 理解 SQLAlchemy 和關聯式資料庫
詳細內容
Flask 是一個用於 Python 的網頁框架,讓您可以簡單開始,並在專案擴大時小心成長,而不會面臨框架的問題。Flask 整合了 Werkzeug(網頁程式設計工具包)和 Jinja(模板引擎),並添加了一層,讓您以緊湊的方式構建網頁應用程式和服務,同時讓您選擇自己的工具。
《Instant Flask Web Development》將帶您超越 Flask 文檔中的快速入門,並展示一種自下而上的方法來組織您的 Flask 應用程式。它展示了如何構建一個小型可部署的排程應用程式,並指引您在使用 Flask 開發時可以做出的各種設計決策。
《Instant Flask Web Development》讓您設置開發環境並了解 Flask 如何處理網頁請求,然後逐層添加,展示如何構建一個功能完整的數據驅動網頁應用程式,準備好發布。在使用 Flask 時,您可以使用 Python 並利用其最佳工具。這本書將幫助您構建一個簡單應用程式的各個層面:使用 Flask 的 URL 路由、使用 SQLAlchemy 的資料庫、使用 WTForms 的表單驗證、用戶身份驗證和會話、使用 Twitter Bootstrap 的頁面佈局,以及使用 jQuery 的瀏覽器代碼。
這本書承諾讓您能夠啟動您的第一個 Flask 應用程式,讓您能在下一個網頁專案中使用 Flask 和 Python。
您將從這本書中學到什麼
- 使用 virtualenv 管理您的專案依賴
- 理解 Flask 如何提供 URL 路由和網頁請求處理
- 認識 Flask 如何在磁碟上提供靜態檔案
- 了解如何使用 SQLAlchemy 建模、儲存和查詢資料
- 使用 WTForms 呈現 HTML 表單並驗證輸入
- 使用基本的 Jinja 模板構建頁面佈局,並使用 Twitter Bootstrap
- 創建、回憶、更新、刪除和列出資料庫記錄
- 在 Jinja 中構建自定義模板過濾器以格式化資料
- 驗證用戶並維護會話
方法
本書充滿了實用的逐步指導和對最重要和有用任務的清晰解釋。這本書採用自下而上的方法幫助您構建應用程式,並充滿逐步指導和實用範例,幫助您提升知識。
本書的讀者對象
《Instant Flask Web Development》適合對網頁程式設計新手的開發者,或對網頁程式設計熟悉但對 Flask 新手的開發者。如果您對 Python 和 HTML 有一些初學者經驗,或願意學習,這本書將為您提供良好的起步。