Wednesday 1:20 p.m.–4:40 p.m.

Let's Learn Twisted Python

Aurynn Shaw

Audience level:
Intermediate
Category:
Python Libraries

Description

Let's Learn Twisted is a short 3-hour tutorial covering the basics of writing a Twisted Python client-server application using Twisted Python's Factory and Endpoint APIs to construct a peer-to-peer chat and RPC network.

Abstract

In this session, students will work together in a guided, collaborative workshop to learn how to write a client/server network program, and build upon that base to develop a more robust peer to peer chat implementation with remote procedure call mechanisms. This session is intended to teach the Twisted event loop model, the basics of writing a Twisted Protocol object, and the mental model of how to deal with asynchronous systems in Twisted. Students are expected to: 1. Be familiar with the Python language 1. Be familiar with passing callables, closures, and other intermediate to advanced concepts 1. Familiarity with writing web services a plus Students are required to have a *virtualenv* environment configured, with Twisted **v13** or higher installed through **pip**. Use of system packages will cause issues, and **pip** provides the most consistent packages for our needs.

Student Handout

No handouts have been provided yet for this tutorial