وبلاگ بلیان

Twisted Network Programming Essentials: Event-driven Network Programming with Python

معرفی کتاب «Twisted Network Programming Essentials: Event-driven Network Programming with Python» نوشتهٔ Jessica McKellar; Abe Fettig; Meghan Blanchette; Rebecca Demarest، منتشرشده توسط نشر O'Reilly Media در سال 2013. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است. «Twisted Network Programming Essentials: Event-driven Network Programming with Python» در دستهٔ بدون دسته‌بندی قرار دارد.

Get started with Twisted, the event-driven networking framework written in Python. With this introductory guide, you’ll learn the key concepts and design patterns to build event-driven client and server applications for many popular networking protocols. You’ll also learn the tools to build new protocols using Twisted’s primitives. Start by building basic Tcp clients and servers, and then focus on deploying production-grade applications with the Twisted Application infrastructure. Along the way, you can play with and extend examples of common tasks you’ll face when building network applications. If you’re familiar with Python, you’re ready for Twisted.* Learn the core components of Twisted servers and clients * Write asynchronous code with the Deferred Api * Construct Http servers with Twisted’s high-level web Apis * Use the Agent Api to develop flexible web clients * Configure and deploy Twisted services in a robust and standardized fashion * Access databases using Twisted’s nonblocking interface * Add common server components: logging, authentication, threads and processes, and testing * Explore ways to build clients and servers for Irc, popular mail protocols, and Ssh Copyright Table of Contents Foreword to the First Edition Preface Why Use Twisted? What This Book Covers Conventions Used in This Book What You’ll Need Changes Since the Previous Edition Using Code Examples Safari® Books Online How to Contact Us Acknowledgments Part I. An Introduction to Twisted Chapter 1. Getting Started Installing Twisted Installation on Linux Installation on Windows Installation on OS X Installing from Source Required Dependencies Installing Twisted from a Release Tarball Installing Twisted from a Source Checkout Installing Optional Dependencies from Source Testing Your Installation Using the Twisted Documentation API Documentation Subproject Documentation Finding Answers to Your Questions Mailing Lists IRC Channels Stack Overflow Twisted Blogs Chapter 2. Building Basic Clients and Servers A TCP Echo Server and Client Event-Driven Programming The Reactor Transports Protocols Protocol Factories Decoupling Transports and Protocols A TCP Quote Server and Client Protocol State Machines More Practice and Next Steps Chapter 3. Writing Asynchronous Code with Deferreds What Deferreds Do and Don’t Do The Structure of a Deferred Object Callback Chains and Using Deferreds in the Reactor Practice: What Do These Deferred Chains Do? Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5 Exercise 6 The Truth About addCallbacks Exercise 7 Exercise 8 Key Facts About Deferreds Summary of the Deferred API More Practice and Next Steps Chapter 4. Web Servers Responding to HTTP Requests: A Low-Level Review The Structure of an HTTP Request Parsing HTTP Requests Handling GET Requests Serving Static Content Serving Dynamic Content Dynamic Dispatch Handling POST Requests A Minimal POST Example Asynchronous Responses More Practice and Next Steps Chapter 5. Web Clients Basic HTTP Resource Retrieval Printing a Web Resource Downloading a Web Resource Agent Requesting Resources with Agent Retrieving Response Metadata POSTing Data with Agent More Practice and Next Steps Part II. Building Production-Grade Twisted Services Chapter 6. Deploying Twisted Applications The Twisted Application Infrastructure Services Applications TAC Files twistd Plugins More twistd Examples More Practice and Next Steps Suggested Exercises Chapter 7. Logging Basic In-Application Logging twistd Logging Custom Loggers Key Facts and Caveats About Logging Chapter 8. Databases Nonblocking Database Queries More Practice and Next Steps Chapter 9. Authentication The Components of Twisted Cred Twisted Cred: An Example Credentials Checkers Authentication in Twisted Applications More Practice and Next Steps Chapter 10. Threads and Subprocesses Threads Subprocesses Running a Subprocess and Getting the Result Custom Process Protocols More Practice and Next Steps Chapter 11. Testing Writing and Running Twisted Unit Tests with Trial Testing Protocols Tests and the Reactor Testing Deferreds Testing the Passage of Time More Practice and Next Steps Part III. More Protocols and More Practice Chapter 12. Twisted Words IRC Clients IRC Servers More Practice and Next Steps Chapter 13. Twisted Mail SMTP Clients and Servers The SMTP Protocol Sending Emails Using SMTP SMTP Servers Storing Mail IMAP Clients and Servers IMAP Servers IMAP Clients POP3 Clients and Servers POP3 Servers More Practice and Next Steps Chapter 14. SSH SSH Servers A Basic SSH Server Using Public Keys for Authentication Providing an Administrative Python Shell Running Commands on a Remote Server SSH Clients More Practice and Next Steps Chapter 15. The End Contributing to Twisted Index About the Authors Get started with Twisted, the event-driven networking framework written in Python. With this introductory guide, you’ll learn the key concepts and design patterns to build event-driven client and server applications for many popular networking protocols. You’ll also learn the tools to build new protocols using Twisted’s primitives.Start by building basic TCP clients and servers, and then focus on deploying production-grade applications with the Twisted Application infrastructure. Along the way, you can play with and extend examples of common tasks you’ll face when building network applications. If you’re familiar with Python, you’re ready for Twisted.Learn the core components of Twisted servers and clientsWrite asynchronous code with the Deferred APIConstruct HTTP servers with Twisted’s high-level web APIsUse the Agent API to develop flexible web clientsConfigure and deploy Twisted services in a robust and standardized fashionAccess databases using Twisted’s nonblocking interfaceAdd common server components: logging, authentication, threads and processes, and testingExplore ways to build clients and servers for IRC, popular mail protocols, and SSH Get started with Twisted, the event-driven networking framework written in Python. With this introductory guide, you{u2019}ll learn the key concepts and design patterns to build event-driven client and server applications for many popular networking protocols. You{u2019}ll also learn the tools to build new protocols using Twisted{u2019}s primitives. Start by building basic TCP clients and servers, and then focus on deploying production-grade applications with the Twisted Application infrastructure. Along the way, you can play with and extend examples of common tasks you{u2019}ll face when building network applications. If you{u2019}re familiar with Python, you{u2019}re ready for Twisted. Learn the core components of Twisted servers and clients Write asynchronous code with the Deferred API Construct HTTP servers with Twisted{u2019}s high-level web APIs Use the Agent API to develop flexible web clients Configure and deploy Twisted services in a robust and standardized fashion Access databases using Twisted{u2019}s nonblocking interface Add common server components: logging, authentication, threads and processes, and testing Explore ways to build clients and servers for IRC, popular mail protocols, and SSH "Twisted Network Programming Essentials from O'Reilly is a task-oriented look at this new open source, Python-based technology. The book begins with recommendations for various plug-ins and add-ons to enhance the basic package as installed. It then details Twisted's collection simple network protocols, and helper utilities. The book also includes projects that let you try out the Twisted framework for yourself. For example, you'll find examples of using Twisted to build web services applications using the REST architecture, using XML-RPC, and using SOAP. Written for developers who want to start building applications using Twisted, this comprehensive guide presents examples of the most common tasks you'll face when building network applications. It also helps you understand the key concepts and design patterns used in Twisted applications." --
دانلود کتاب Twisted Network Programming Essentials: Event-driven Network Programming with Python