Twisted Network Programming Essentials

Twisted Network Programming Essentials

by Jessica McKellar, Abe Fettig

Paperback(Second Edition)

View All Available Formats & Editions
Members save with free shipping everyday! 
See details


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

Product Details

ISBN-13: 9781449326111
Publisher: O'Reilly Media, Incorporated
Publication date: 04/02/2013
Edition description: Second Edition
Pages: 194
Product dimensions: 6.90(w) x 9.10(h) x 0.50(d)

About the Author

Jessica McKellar is a software engineer from Cambridge, MA. She enjoys the Internet, networking, low-level systems engineering, and contributing to and helping other people contribute to open source software. She is a Twisted maintainer, organizer for the Boston Python user group, and a local STEM volunteer.

Abe Fettig is a software developer and maintainer of Hep, an open source message server that makes it possible to transparently route information between RSS, email, weblogs, and web services. He speaks frequently at software conferences including PyCon and lives in Portland, Maine with his wife, Hannah.

Table of Contents

  • Foreword to the First Edition
  • Preface
  • 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

  • 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

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

  • Colophon

Customer Reviews