Mastering Flask
暫譯: 精通 Flask
Jack Stouffer
- 出版商: Packt Publishing
- 出版日期: 2015-09-30
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 282
- 裝訂: Paperback
- ISBN: 1784393657
- ISBN-13: 9781784393656
-
相關分類:
Flask
海外代購書籍(需單獨結帳)
商品描述
Gain expertise in Flask to create dynamic and powerful web applications
About This Book
- Work with scalable Flask application structures to create complex web apps
- Discover the most powerful Flask extensions and learn how to create one
- Deploy your application to real-world platforms using this step-by-step guide
Who This Book Is For
If you are a Flask user who knows the basics of the library and how to create basic web pages with HTML and CSS, and you want to take your applications to the next level, this is the book for you. Harnessing the full power of Flask will allow you to create complex web applications with ease.
What You Will Learn
- Set up a best practices Python environment
- Use SQLAlchemy to programmatically query a database
- Develop templates in Jinja
- Set up an MVC environment for Flask
- Discover NoSQL, when to use it, when not to, and how to use it
- Develop a custom Flask extension
- Use Celery to create asynchronous tasks
In Detail
Flask is a library that allows programmers to create web applications in Python. Flask is a micro-framework that boasts a low learning curve, a large community, and the power to create complex web apps. However, Flask is easy to learn but difficult to master.
Starting from a simple Flask app, this book will walk through advanced topics while providing practical examples of the lessons learned. After building a simple Flask app, a proper app structure is demonstrated by transforming the app to use a Model-View-Controller (MVC) architecture. With a scalable structure in hand, the next chapters use Flask extensions to provide extra functionality to the app, including user login and registration, NoSQL querying, a REST API, an admin interface, and more. Next, you'll discover how to use unit testing to take the guesswork away from making sure the code is performing as it should. The book closes with a discussion of the different platforms that are available to deploy a Flask app on, the pros and cons of each one, and how to deploy on each one.
Style and approach
With plenty of useful examples, this guide introduces new concepts and then shows you how those concepts can be used in a real-world environment. Most sections are based around a single example app that is developed throughout the book.
商品描述(中文翻譯)
掌握 Flask 專業知識以創建動態且強大的網頁應用程式
本書介紹
- 使用可擴展的 Flask 應用程式結構來創建複雜的網頁應用程式
- 發現最強大的 Flask 擴展並學習如何創建一個
- 使用這本逐步指南將您的應用程式部署到實際平台
本書適合誰
如果您是已經了解 Flask 基礎知識並能使用 HTML 和 CSS 創建基本網頁的使用者,並且希望將您的應用程式提升到更高的層次,那麼這本書就是為您而寫的。充分利用 Flask 的強大功能將使您能夠輕鬆創建複雜的網頁應用程式。
您將學到什麼
- 設置最佳實踐的 Python 環境
- 使用 SQLAlchemy 以程式化方式查詢資料庫
- 在 Jinja 中開發模板
- 為 Flask 設置 MVC 環境
- 了解 NoSQL,何時使用、何時不使用以及如何使用
- 開發自定義的 Flask 擴展
- 使用 Celery 創建異步任務
詳細內容
Flask 是一個允許程式設計師使用 Python 創建網頁應用程式的庫。Flask 是一個微框架,具有低學習曲線、大型社群以及創建複雜網頁應用程式的能力。然而,Flask 雖然容易學習,但卻難以精通。
本書從一個簡單的 Flask 應用程式開始,將逐步介紹進階主題,同時提供實用的範例來說明所學的課程。在構建一個簡單的 Flask 應用程式後,將通過轉換應用程式以使用模型-視圖-控制器(MVC)架構來展示適當的應用程式結構。擁有可擴展的結構後,接下來的章節將使用 Flask 擴展為應用程式提供額外功能,包括用戶登錄和註冊、NoSQL 查詢、REST API、管理介面等。接下來,您將了解如何使用單元測試來消除確保代碼正常運行的猜測。最後,本書將討論可用於部署 Flask 應用程式的不同平台、每個平台的優缺點以及如何在每個平台上進行部署。
風格與方法
本指南提供了大量有用的範例,介紹新概念,然後展示這些概念如何在實際環境中使用。大多數部分圍繞著一個在整本書中開發的單一範例應用程式。