Twisted Network Programming Essentials, 2nd Edition


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

Table of Contents
Part I: An Introduction to Twisted
Chapter 1. Getting Started
Chapter 2. Building Basic Clients and Servers
Chapter 3. Writing Asynchronous Code with Deferreds
Chapter 4. Web Servers
Chapter 5. Web Clients

Part II: Building Production-Grade Twisted Services
Chapter 6. Deploying Twisted Applications
Chapter 7. Logging
Chapter 8. Databases
Chapter 9. Authentication
Chapter 10. Threads and Subprocesses
Chapter 11. Testing

Part III: More Protocols and More Practice
Chapter 12. Twisted Words
Chapter 13. Twisted Mail
Chapter 14. SSH
Chapter 15. The End

Book Details

  • Paperback: 194 pages
  • Publisher: O’Reilly Media; 2nd Edition (March 2013)
  • Language: English
  • ISBN-10: 1449326110
  • ISBN-13: 978-1449326111
Download [10.7 MiB]

You may also like...

Leave a Reply