Python Web Development with Sanic: An in-depth guide for Python web developers to improve the speed and scalability of web applications
暫譯: 使用 Sanic 的 Python 網頁開發:提升網頁應用程式速度與可擴展性的深入指南
Hopkins, Adam
- 出版商: Packt Publishing
- 出版日期: 2022-03-28
- 售價: $1,830
- 貴賓價: 9.5 折 $1,739
- 語言: 英文
- 頁數: 504
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1801814414
- ISBN-13: 9781801814416
-
相關分類:
Python、程式語言、JVM 語言
海外代購書籍(需單獨結帳)
相關主題
商品描述
Build a performant and scalable web application using Sanic, along with maintaining clean code to fit your unique challenges and business requirements
Key Features
- Expand your knowledge of web application architecture for building scalable web apps
- Learn the core philosophies of performance and scalability from one of the creators of Sanic
- Create a complete Python web app from scratch and learn to translate the knowledge you gain across various use cases
Book Description
Today's developers need something more powerful and customizable when it comes to web app development. They require effective tools to build something unique to meet their specific needs, and not simply glue a bunch of things together built by others. This is where Sanic comes into the picture. Built to be unopinionated and scalable, Sanic is a next-generation Python framework and server tuned for high performance.
This Sanic guide starts by helping you understand Sanic's purpose, significance, and use cases. You'll learn how to spot different issues when building web applications, and how to choose, create, and adapt the right solution to meet your requirements. As you progress, you'll understand how to use listeners, middleware, and background tasks to customize your application. The book will also take you through real-world examples, so you will walk away with practical knowledge and not just code snippets.
By the end of this web development book, you'll have gained the knowledge you need to design, build, and deploy high-performance, scalable, and maintainable web applications with the Sanic framework.
What you will learn
- Understand the difference between WSGI, Async, and ASGI servers
- Discover how Sanic organizes incoming data, why it does it, and how to make the most of it
- Implement best practices for building reliable, performant, and secure web apps
- Explore useful techniques for successfully testing and deploying a Sanic web app
- Create effective solutions for the modern web, including task management, bot integration, and GraphQL
- Identify security concerns and understand how to deal with them in your Sanic apps
Who this book is for
This book is for Python web developers who have basic to intermediate-level knowledge of how web technologies work and are looking to take their applications to the next level using the power of the Sanic framework. Working knowledge of Python web development along with frameworks such as Django and/or Flask will be helpful but is not required. A basic to intermediate-level understanding of Python 3, HTTP, RESTful API patterns, and modern development practices and tools, such as type annotations, pytest, and virtual environments will also be beneficial.
商品描述(中文翻譯)
**使用 Sanic 建立高效能且可擴展的網頁應用程式,同時維持乾淨的程式碼以符合您的獨特挑戰和商業需求**
#### 主要特點
- 擴展您對網頁應用程式架構的知識,以建立可擴展的網頁應用程式
- 從 Sanic 的創建者之一學習效能和可擴展性的核心理念
- 從零開始創建完整的 Python 網頁應用程式,並學習如何將所獲得的知識轉化為各種使用案例
#### 書籍描述
當今的開發者在網頁應用程式開發方面需要更強大且可自訂的工具。他們需要有效的工具來建立獨特的解決方案,以滿足其特定需求,而不僅僅是將其他人構建的東西拼湊在一起。這就是 Sanic 發揮作用的地方。Sanic 是一個為高效能而調整的下一代 Python 框架和伺服器,旨在保持中立且可擴展。
本書將幫助您理解 Sanic 的目的、重要性和使用案例。您將學會在構建網頁應用程式時如何識別不同的問題,以及如何選擇、創建和調整合適的解決方案以滿足您的需求。隨著進展,您將了解如何使用監聽器、中介軟體和背景任務來自訂您的應用程式。本書還將通過實際案例引導您,讓您獲得實用的知識,而不僅僅是程式碼片段。
在本書結束時,您將獲得設計、構建和部署高效能、可擴展且可維護的網頁應用程式所需的知識,並能夠使用 Sanic 框架。
#### 您將學到什麼
- 理解 WSGI、Async 和 ASGI 伺服器之間的區別
- 探索 Sanic 如何組織傳入數據、為何這樣做以及如何充分利用它
- 實施構建可靠、高效能和安全網頁應用程式的最佳實踐
- 探索成功測試和部署 Sanic 網頁應用程式的有用技術
- 為現代網頁創建有效的解決方案,包括任務管理、機器人整合和 GraphQL
- 識別安全問題並了解如何在您的 Sanic 應用程式中處理它們
#### 本書適合誰
本書適合具有基本到中級知識的 Python 網頁開發者,他們了解網頁技術的運作並希望利用 Sanic 框架的力量將其應用程式提升到更高的水平。具備 Python 網頁開發的工作知識,以及 Django 和/或 Flask 等框架的經驗將會有幫助,但並非必需。對 Python 3、HTTP、RESTful API 模式以及現代開發實踐和工具(如類型註解、pytest 和虛擬環境)的基本到中級理解也將是有益的。
目錄大綱
1. Introduction to Sanic and Async Frameworks
2. Organizing a Project
3. Routing and Intaking HTTP Requests
4. Ingesting HTTP Data
5. Building Response Handlers
6. Operating Outside the Response Handler
7. Dealing with Security Concerns
8. Running a Sanic Server
9. Best Practices to Improve Your Web Applications
10. Implementing Common Use Cases with Sanic
11. A Complete Real-World Example
目錄大綱(中文翻譯)
1. Introduction to Sanic and Async Frameworks
2. Organizing a Project
3. Routing and Intaking HTTP Requests
4. Ingesting HTTP Data
5. Building Response Handlers
6. Operating Outside the Response Handler
7. Dealing with Security Concerns
8. Running a Sanic Server
9. Best Practices to Improve Your Web Applications
10. Implementing Common Use Cases with Sanic
11. A Complete Real-World Example