使用手机摄像头 - 扫描以下代码并下载 Kindle 阅读软件。
Python Web Development with Sanic: An in-depth guide for Python web developers to improve the speed and scalability of web applications (English Edition) Kindle电子书
Build a performant and scalable web application using Sanic, along with maintaining clean code to fit your unique challenges and business requirements
- 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
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.
Table of Contents
- Introduction to Sanic and Async Frameworks
- Organizing a Project
- Routing and Intaking HTTP Requests
- Ingesting HTTP Data
- Building Response Handlers
- Operating Outside the Response Handler
- Dealing with Security Concerns
- Running a Sanic Server
- Best Practices to Improve Your Web Applications
- Implementing Common Use Cases with Sanic
- A Complete Real-World Example
- ASIN : B09N71KNP8
- 出版社 : Packt Publishing; 第 1st 版 (2022年3月28日)
- 出版日期 : 2022年3月28日
- 语言 : 英语
- 文件大小 : 7506 KB
- 标准语音朗读 : 已启用
- X-Ray : 未启用
- 生词提示功能 : 未启用
- 纸书页数 : 504页
- 亚马逊热销商品排名: 商品里排第23,388名Kindle商店 (查看商品销售排行榜Kindle商店)
|5 星 (0%)||0%|
|4 星 (0%)||0%|
|3 星 (0%)||0%|
|2 星 (0%)||0%|
|1 星 (0%)||0%|
Section 1 provides a good overview for basic project structures. It discusses the active user community even though the tool has only been around since 2016. Also included are some ideas about working through your IDE as well as advancing to containers. The section briefly discusses automated ingests.
The second section is the meat of the book, focusing on what to do at every step to help Sanic accelerate your delivery. Three of the chapters discuss dealing with HTTP in your process, using cookies, and ensuring your Sanic instance find all the right information during communication. It also allows working outside your response handler for unusual solutions. One of the best chapters was 7, dealing with security concerns, and using the Sanic middleware to manage sessions.
Finally, the third section includes practical examples including a step-by-step tutorial to build a booktracker to manage your personal library. If one thing was missing, it was the comparative step, how does Sanic do against other functions to deliver enhanced speed and communication? It seems like an effective tool, and a useful way to manage asynchronous applications but it would have been nice to be able to compare to other async methods to find an overall solution.
Overall, the book provides the technical solutions to stand up Sanic. It also provides the program understanding as to why you should make certain decisions at the defined places when building your program. I’d recommend the book to anyone working with Sanic but if you haven’t used it, I’m not sure the justification is sufficient to pick this up and start in a new place.
As a seasoned Python developer, but relatively inexperienced in web development, I appreciated the historical perspective the book starts with. This helps explain the ‘why’ throughout the book. Key topics cover how to route and intake HTTP requests, how to ingest HTTP data, and the concept of responsive handlers. The author sufficiently covers security, real-world case studies, and best practices as they relate to Sanic.
Of note, this is not a beginner’s book. Readers with Phyton 3 experience and at least a foundational understanding of web technologies (e.g., HTTP, RESTful, etc.) stand to get the most out of this excellent book.