Mastering Flask Web and API Development: Build and deploy production-ready Flask apps seamlessly across web, APIs, and mobile platforms

Tragura, Sherwin John C.

  • 出版商: Packt Publishing
  • 出版日期: 2024-08-16
  • 售價: $1,740
  • 貴賓價: 9.5$1,653
  • 語言: 英文
  • 頁數: 494
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1837633223
  • ISBN-13: 9781837633227
  • 相關分類: Flask
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Discover how to construct API and web components, build enterprise-grade applications, design and implement unit and behavioral testing, and plan deployment strategies for scalable Flask 3 applications

Key Features:

- Implement web and API applications using both standard and asynchronous Flask components

- Improve your dev experience with signals, route decorators, async/await design patterns, context managers, and nested blueprints

- Tie all the features together in each chapter through practical, relatable applications

- Purchase of the print or Kindle book includes a free PDF eBook

Book Description:

Flask is a popular Python framework known for its lightweight and modular design. Mastering Flask Web and API Development will take you on an exhaustive tour of the Flask environment and teach you how to build a production-ready application.

You'll start by installing Flask and grasping fundamental concepts, such as MVC and ORM database access. Next, you'll master structuring applications for scalability through Flask blueprints. As you progress, you'll explore both SQL and NoSQL databases while creating REST APIs and implementing JWT authentication, and improve your skills in role-based access security, utilizing LDAP, OAuth, OpenID, and databases. The new project structure, managed by context managers, as well as ASGI support, has revolutionized Flask, and you'll get to grips with these crucial upgrades. You'll also explore out-of-the-box integrations with technologies, such as RabbitMQ, Celery, NoSQL databases, PostgreSQL, and various external modules. The concluding chapters discuss enterprise-related challenges where Flask proves its mettle as a core solution.

By the end of this book, you'll be well-versed with Flask, seeing it not only as a lightweight web and API framework, but also as a potent problem-solving tool in your daily work, addressing integration and enterprise issues alongside Django and FastAPI.

What You Will Learn:

- Prepare, set up, and configure development environments for both API and web applications

- Explore built-in serializers and encoders that processes request and response data

- Solve big data issues by integrating Flask applications with NoSQL databases

- Apply various ORM and ODM techniques to build model and repository layers

- Integrate with OpenAPI, Circuit Breaker, ZooKeeper, and OpenTracing to build scalable API applications

- Use Flask middleware to provide CRUD transactions for Flutter-based mobile applications

Who this book is for:

This book is for proficient Python developers seeking a deeper understanding of the Flask framework as a solution for tackling enterprise challenges. It is also a great resource for Flask-savvy readers eager to learn more about the framework's advanced capabilities and new features.

Table of Contents

- A Deep Dive into the Flask Framework

- Adding Advanced Core Features

- Creating REST Web Services

- Utilizing Flask Extensions

- Building Asynchronous Transactions

- Developing Computational and Scientific Applications

- Using Non-Relational Data Storage

- Building Workflows with Flask

- Securing Flask Applications

- Creating Test Cases for Flask

- Deploying Flask Applications

- Integrating Flask with Other Tools and Frameworks

商品描述(中文翻譯)

發現如何構建 API 和網頁元件,建立企業級應用程式,設計和實施單元測試及行為測試,並規劃可擴展的 Flask 3 應用程式的部署策略。

主要特點:
- 使用標準和非同步的 Flask 元件實現網頁和 API 應用程式
- 透過信號、路由裝飾器、async/await 設計模式、上下文管理器和嵌套藍圖來改善開發體驗
- 在每一章中通過實用且相關的應用程式將所有功能結合在一起
- 購買印刷版或 Kindle 書籍可獲得免費 PDF 電子書

書籍描述:
Flask 是一個受歡迎的 Python 框架,以其輕量和模組化設計而聞名。《掌握 Flask 網頁和 API 開發》將帶您深入了解 Flask 環境,並教您如何構建生產就緒的應用程式。

您將從安裝 Flask 開始,掌握基本概念,如 MVC 和 ORM 數據庫訪問。接下來,您將掌握通過 Flask 藍圖結構化應用程式以實現可擴展性。隨著進展,您將在創建 REST API 和實施 JWT 認證的同時探索 SQL 和 NoSQL 數據庫,並提高在基於角色的訪問安全性方面的技能,利用 LDAP、OAuth、OpenID 和數據庫。新的項目結構由上下文管理器管理,以及 ASGI 支持,徹底改變了 Flask,您將掌握這些關鍵升級。您還將探索與 RabbitMQ、Celery、NoSQL 數據庫、PostgreSQL 和各種外部模組的即時整合。最後幾章將討論企業相關挑戰,Flask 在這些挑戰中展現了其作為核心解決方案的實力。

在本書結束時,您將對 Flask 了如指掌,不僅將其視為輕量級的網頁和 API 框架,還將其視為日常工作中強大的問題解決工具,解決與 Django 和 FastAPI 相關的整合和企業問題。

您將學到的內容:
- 準備、設置和配置 API 和網頁應用程式的開發環境
- 探索內建的序列化器和編碼器,處理請求和響應數據
- 通過將 Flask 應用程式與 NoSQL 數據庫整合來解決大數據問題
- 應用各種 ORM 和 ODM 技術來構建模型和儲存庫層
- 與 OpenAPI、Circuit Breaker、ZooKeeper 和 OpenTracing 整合以構建可擴展的 API 應用程式
- 使用 Flask 中介軟體為基於 Flutter 的行動應用程式提供 CRUD 交易

本書適合對象:
本書適合熟練的 Python 開發者,尋求對 Flask 框架有更深入的理解,以解決企業挑戰。對於希望了解框架的進階功能和新特性的 Flask 愛好者來說,這也是一本很好的資源。

目錄:
- 深入探討 Flask 框架
- 添加進階核心功能
- 創建 REST 網頁服務
- 利用 Flask 擴展
- 建立非同步交易
- 開發計算和科學應用程式
- 使用非關聯數據存儲
- 使用 Flask 構建工作流程
- 保護 Flask 應用程式
- 為 Flask 創建測試案例
- 部署 Flask 應用程式
- 將 Flask 與其他工具和框架整合