Introduction to Event Driven Programming Using Twisted
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.
- 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
About the speaker
Next session in D3
1:20pm Graph Analysis from the Ground Up by Van Lindberg
More sessions at PyCon US 2012 on Python
Coverage of this session
Sign in
to add slides, notes or videos to this session