Advertisement

Expert Twisted

Event-Driven and Asynchronous Programming with Python

  • Mark Williams
  • Cory Benfield
  • Brian Warner
  • Moshe Zadka
  • Dustin Mitchell
  • Kevin Samuel
  • Pierre Tardy

Table of contents

  1. Front Matter
    Pages i-xix
  2. Foundations

    1. Front Matter
      Pages 1-1
    2. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 3-58
    3. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 59-107
    4. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 109-154
  3. Projects

    1. Front Matter
      Pages 155-155
    2. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 157-178
    3. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 179-221
    4. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 223-251
    5. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 253-284
    6. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 285-304
    7. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 305-316
    8. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 317-338
    9. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 339-363
    10. Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel et al.
      Pages 365-371
  4. Back Matter
    Pages 373-382

About this book

Introduction

Explore Twisted, the Python-based event-driven networking engine, and review several of its most popular application projects. It is written by community leaders who have contributed to many of the projects covered, and share their hard-won insights and experience.

Expert Twisted starts with an introduction to event-driven programming, explaining it in the context of what makes Twisted unique. It shows how Twisted's design emphasizes testability as a solution to common challenges of reliability, debugging, and start-to-finish causality that are inherent in event-driven programming. It also explains asynchronous programming, and the importance of functions, deferreds, and coroutines. It then uses two popular applications, treq and klein, to demonstrate calling and writing Web APIs with Twisted.

The second part of the book dives into Twisted projects, in each case explaining how the project fits into the Twisted ecosystem and what it does, and offers several examples to bring readers up to speed, with pointers to additional resources for more depth. Examples include using Twisted with Docker, as a WSGI container, for file sharing, and more.

Keywords

Twisted Python Networking Event-driven Programming Asynchronous Programming Docker asyncio deferreds testing

Authors and affiliations

  • Mark Williams
    • 1
  • Cory Benfield
    • 2
  • Brian Warner
    • 3
  • Moshe Zadka
    • 4
  • Dustin Mitchell
    • 5
  • Kevin Samuel
    • 6
  • Pierre Tardy
    • 7
  1. 1.PasadenaUSA
  2. 2.LondonUK
  3. 3.New YorkUSA
  4. 4.New YorkUSA
  5. 5.New YorkUSA
  6. 6.NiceFrance
  7. 7.ToulouseFrance

Bibliographic information

  • DOI https://doi.org/10.1007/978-1-4842-3742-7
  • Copyright Information Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel, Pierre Tardy 2019
  • Publisher Name Apress, Berkeley, CA
  • eBook Packages Professional and Applied Computing
  • Print ISBN 978-1-4842-3741-0
  • Online ISBN 978-1-4842-3742-7
  • Buy this book on publisher's site
Industry Sectors
Pharma
Automotive
Chemical Manufacturing
Biotechnology
Finance, Business & Banking
Electronics
IT & Software
Telecommunications
Consumer Packaged Goods
Energy, Utilities & Environment
Aerospace
Engineering