Building Rest APIs with Flask: Create Python Web Services with MySQL
暫譯: 使用 Flask 建立 REST API:使用 MySQL 創建 Python 網路服務
Relan, Kunal
買這商品的人也買了...
-
$1,990$1,891 -
$374PyTorch 深度學習實戰
-
$331PyTorch 深度學習入門與實戰
相關主題
商品描述
Building REST APIs with Flask provides a primer on Flask, RESTful services, and working with pip to set up your virtual environment. The key differences between NoSQL and SQL are covered, and you are taught how to connect MySQL and Flask using SQLAlchemy. Author Kunal Relan presents best practices for creating REST APIs and guides you in structuring your app and testing REST endpoints. He teaches you how to set up authentication and render HTML using views. You learn how to write unit tests for your REST APIs, and understand mocks, assertions, and integration testing. You will know how to document your REST APIs, deploy your Flask application on all of the major cloud platforms, and debug and monitor your Flask application.
What You'll Learn- Use MySQL to create Flask REST APIs
- Test REST endpoints
- Create CRUD endpoints with Flask and MySQL
- Deploy Flask on all of the major cloud platforms
- Monitor your Flask application
Who This Book Is For
Python developers interested in REST API development using Flask and web developers with basic programming knowledge who want to learn how Python and REST APIs work together. Readers should be familiar with Python (command line, or at least pip) and MySQL.
商品描述(中文翻譯)
使用 Flask 微框架開發 RESTful 網路服務並使用 MySQL 進行整合。利用 Flask 開發、部署和管理 REST API,並使用易於閱讀和理解的 Python 代碼解決問題。從多種庫中選擇以解決您的問題。學習如何使用 SQLAlchemy ORM 將 MySQL 作為 Flask API 的網路服務資料庫。
《使用 Flask 建立 REST API》提供了 Flask、RESTful 服務以及使用 pip 設置虛擬環境的入門知識。書中涵蓋了 NoSQL 和 SQL 之間的主要差異,並教您如何使用 SQLAlchemy 將 MySQL 與 Flask 連接。作者 Kunal Relan 提出了創建 REST API 的最佳實踐,並指導您如何結構化應用程式和測試 REST 端點。他教您如何設置身份驗證並使用視圖渲染 HTML。您將學會為 REST API 編寫單元測試,並理解模擬、斷言和整合測試。您將知道如何記錄您的 REST API,將 Flask 應用程式部署到所有主要雲端平台,並調試和監控您的 Flask 應用程式。
您將學到的內容:
- 使用 MySQL 創建 Flask REST API
- 測試 REST 端點
- 使用 Flask 和 MySQL 創建 CRUD 端點
- 在所有主要雲端平台上部署 Flask
- 監控您的 Flask 應用程式
本書適合對使用 Flask 開發 REST API 感興趣的 Python 開發者,以及希望了解 Python 和 REST API 如何協同工作的具備基本程式設計知識的網頁開發者。讀者應熟悉 Python(命令行或至少 pip)和 MySQL。
作者簡介
作者簡介(中文翻譯)
Kunal Relan 是一位 iOS 安全研究員及全端開發者,擁有超過四年的技術經驗,涵蓋網路安全、DevOps、雲端基礎設施及應用程式開發等多個領域,並作為顧問與全球各地的初創公司合作。他是 Alibaba Cloud MVP,並且是 iOS Penetration Testing(Apress)一書的作者,以及多篇白皮書的撰寫者。Kunal 是一位技術愛好者及活躍的演講者,他定期為開源社群貢獻,並為 Digital Ocean 和 Alibaba Techshare 撰寫文章。