Building RESTful Python Web Services
暫譯: 建立 RESTful Python 網路服務

Gaston C. Hillar

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

商品描述

Create web services that are lightweight, maintainable, scalable, and secure using the best tools and techniques designed for Python

About This Book

  • Develop RESTful Web Services using the most popular frameworks in Python
  • Configure and fine-tune your APIs using the best tools and techniques available
  • This practical guide will help you to implement complete REST-based APIs from scratch

Who This Book Is For

This book is for web developers who have working knowledge of Python and would like to build amazing web services by taking advantage of the various frameworks of Python. You should have some knowledge of RESTful APIs.

What You Will Learn

  • Develop complex RESTful APIs from scratch with Python combined with and without data sources
  • Choose the most appropriate (micro) framework based on the specific requirements of a RESTful API / web service
  • Debug, test, and profile RESTful APIs with each of the frameworks
  • Develop a complex RESTful API that interacts with a PostgreSQL database
  • Add authentication and permissions to a RESTful API built in each of the frameworks
  • Map URL patterns to request handlers and check how the API works
  • Profile an existing API and refactor it to take advantage of asynchronous code

In Detail

Python is the language of choice for millions of developers worldwide, due to its gentle learning curve as well as its vast applications in day-to-day programming. It serves the purpose of building great web services in the RESTful architecture. This book will show you the best tools you can use to build your own web services.

Learn how to develop RESTful APIs using the popular Python frameworks and all the necessary stacks with Python, Django, Flask, and Tornado, combined with related libraries and tools. We will dive deep into each of these frameworks to build various web services, and will provide use cases and best practices on when to use a particular framework to get the best results.

We will show you everything required to successfully develop RESTful APIs with the four frameworks such as request handling, URL mapping, serialization, validation, authentication, authorization, versioning, ORMs, databases, custom code for models and views, and asynchronous callbacks. At the end of each framework, we will add authentication and security to the RESTful APIs and prepare tests for it.

By the end of the book, you will have a deep understanding of the stacks needed to build RESTful web services.

Style and approach

The book takes a straightforward approach, not spending time getting you started with RESTful APIs and web services. It will give you the best use cases for each framework to build great web services in Python.

商品描述(中文翻譯)


使用為 Python 設計的最佳工具和技術,創建輕量級、可維護、可擴展且安全的網路服務

本書介紹


  • 使用 Python 中最受歡迎的框架開發 RESTful 網路服務

  • 使用最佳工具和技術配置和微調您的 API

  • 這本實用指南將幫助您從零開始實現完整的基於 REST 的 API

本書適合誰閱讀

本書適合對 Python 有一定工作知識的網頁開發者,並希望利用 Python 的各種框架來構建出色的網路服務。您應該對 RESTful API 有一些了解。

您將學到什麼


  • 從零開始使用 Python 開發複雜的 RESTful API,無論是否結合數據來源

  • 根據 RESTful API / 網路服務的具體需求選擇最合適的 (微) 框架

  • 使用每個框架調試、測試和分析 RESTful API

  • 開發一個與 PostgreSQL 數據庫互動的複雜 RESTful API

  • 為每個框架中構建的 RESTful API 添加身份驗證和權限

  • 將 URL 模式映射到請求處理程序並檢查 API 的運作方式

  • 分析現有 API 並重構以利用非同步代碼

詳細內容

Python 是全球數百萬開發者的首選語言,因為它的學習曲線平緩以及在日常編程中的廣泛應用。它適合用於構建基於 RESTful 架構的優秀網路服務。本書將向您展示可以用來構建自己網路服務的最佳工具。

學習如何使用流行的 Python 框架以及所有必要的堆疊來開發 RESTful API,包括 Python、Django、Flask 和 Tornado,並結合相關的庫和工具。我們將深入探討這些框架,以構建各種網路服務,並提供使用案例和最佳實踐,以便在何時使用特定框架以獲得最佳結果。

我們將展示成功開發 RESTful API 所需的所有內容,包括請求處理、URL 映射、序列化、驗證、身份驗證、授權、版本控制、ORM、數據庫、自定義模型和視圖代碼,以及非同步回調。在每個框架的結尾,我們將為 RESTful API 添加身份驗證和安全性,並為其準備測試。

在本書結束時,您將對構建 RESTful 網路服務所需的堆疊有深入的理解。

風格與方法

本書採取直接的方式,不會花時間讓您入門 RESTful API 和網路服務。它將為您提供每個框架的最佳使用案例,以便在 Python 中構建出色的網路服務。


最後瀏覽商品 (1)