Introduction to Event Driven Programming Using Twisted
- Type:
- Tutorial
- Audience level:
- Intermediate
- Category:
- Useful libraries
March 7th 9 a.m. – 12:20 p.m.
Description
This tutorial introduces programmers with a basic Python skills to the concepts
and techniques of event driven programming. The focus is on understanding an
event loop and handling the events related to TCP connections. Twisted is
introduced as a re-usable event loop implementation and the abstract concepts of
event driven programming are related to specific uses of the Twisted library.
Abstract
- What is event driven programming
- What is it an alternative to
- What are its advantages
- How does an event loop work
- Build one step by step to demonstrate
- Demonstrate a server which can handle many clients
- Demonstrate a client which can run in the same event loop
- Demonstrate timed events in the event loop
- How are event handlers connected to form a program
- Callback functions
- Deferreds
- Generator tricks - inlineCallbacks
- Coroutines - stackless, corotwine
- More