1.

Record Nr.

UNINA9910338011703321

Autore

Williams Mark

Titolo

Expert Twisted : Event-Driven and Asynchronous Programming with Python / / by Mark Williams, Cory Benfield, Brian Warner, Moshe Zadka, Dustin Mitchell, Kevin Samuel, Pierre Tardy

Pubbl/distr/stampa

Berkeley, CA : , : Apress : , : Imprint : Apress, , 2019

ISBN

9781484237427

1484237420

Edizione

[1st ed. 2019.]

Descrizione fisica

1 online resource (391 pages)

Disciplina

005.133

Soggetti

Python (Computer program language)

Programming languages (Electronic computers)

Python

Programming Languages, Compilers, Interpreters

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Nota di bibliografia

Includes bibliographical references.

Nota di contenuto

Part 1: Foundations -- 1. Introduction to Event-Driven programming via Twisted -- 2. Introduction to Asynchronous Programming with Twisted -- 3. Practical Twisted Applications with treq and klein -- Part 2: Projects -- 4. Twisted and Docker -- 5. Twisted as a WSGI Container -- 6. Tahoe LAFS -- 7. Magic Wormhole -- 8. Autobahn -- 9. Integrating Twisted and Asyncio -- 10. Buildbot -- 11. HTTP2 -- 12. Twisted and Django Channels.

Sommario/riassunto

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.