Building Rest APIs with Flask: Create Python Web Services with MySQL

Relan, Kunal

  • 出版商: Apress
  • 出版日期: 2019-09-13
  • 售價: $1,580
  • 貴賓價: 9.5$1,501
  • 語言: 英文
  • 頁數: 199
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484250214
  • ISBN-13: 9781484250211
  • 相關分類: FlaskMySQLPython程式語言SQL
  • 立即出貨 (庫存=1)

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

商品描述

Develop RESTful web services using the Flask micro-framework and integrate them using MySQL. Use Flask to develop, deploy, and manage REST APIs with easy-to-read and understand Python code. Solve your problem from a choice of libraries. Learn to use MySQL as the web services database for your Flask API using SQLAlchemy ORM.

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以易於閱讀和理解的Python程式碼開發、部署和管理REST API。從多個函式庫中選擇解決您的問題。使用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 is an iOS security researcher and a full-stack developer with more than four years of experience in various fields of technology including network security, DevOps, cloud infrastructure, and application development working as a consultant with startups around the globe. He is an Alibaba Cloud MVP, and author of iOS Penetration Testing (Apress) and a variety of white papers. Kunal is a technology enthusiast and an active speaker. He regularly contributes to open source communities and writes articles for Digital Ocean and Alibaba Techshare.

作者簡介(中文翻譯)

Kunal Relan 是一位 iOS 安全研究員和全端開發人員,擁有超過四年的技術經驗,涵蓋網路安全、DevOps、雲基礎架構和應用程式開發等多個領域。他曾在全球各地的初創公司擔任顧問。他是阿里巴巴雲計算 MVP,也是《iOS滲透測試》(Apress)和多篇白皮書的作者。Kunal 是一位科技愛好者和活躍的演講者。他定期貢獻於開源社群,並為 Digital Ocean 和阿里巴巴 Techshare 撰寫文章。