This is a half-day or 3-hour tutorial from 8:30a - 11:30a with lecture and code demonstrations, $150
AUDIENCE/WHO SHOULD ATTEND and PREREQUISITES [Intermediate]
Developers familiar with Python who are interested in exploring client/server network programming with sockets, how web frameworks work under the covers, and accessing web services & APIs. Bring your laptops and code along with me!!
Python is an agile, cross-platform, object-oriented programming language that is popular for a wide range of applications, one of which is network programming. This tutorial introduces current Python programmers to several areas of network &* web programming, each in self-contained lectures with a demonstration of code following each topic.
TOPICS FOR THIS TUTORIAL
* Socket programming -- underneath all of today's network protocols, i.e., web/HTTP, FTP, database connections, IM conversations, online gaming, e-mail exchange, etc., lies the root communication mechanism, sockets. Here, we introduce client/server architecture and how to program sockets using Python. Together, we'll create a simple TCP client & server as well as a UDP client & server. Time-permitting, we'll look at the TCP code through the eyes of Twisted.
* The heart of simple Web development -- yes, pure CGI is "sooo yesterday," but before you jump on any of Python's popular web frameworks, it's a good idea to learn basics and the basis of how all web servers deliver dynamic content back to the client browser so that you can appreciate all the work that is done on your behalf by a more full-featured framework. The concepts covered here will help you learn frameworks faster!
* Web Services & APIs -- In this final part, we explore web services & APIs. This entails hitting various public URL endpoints serving data in a variety of formats, CSV, JSON, image files, and of course, HTML. Time-permitting, we'll do authorized connections to and get data from Twitter!
This tutorial gives a concise and comprehensive introduction to each of these networking related topics so attendees can start experimenting with and writing applications as soon as they get back to their hotel rooms. Most of the examples/demos in the tutorial can be found in "Core Python Applications Programming". We have had great success and feedback giving derivatives of this tutorial in the past at conferences like OSCON, LISA, and PyCon.
Python, Linux, Mac OS X, PC, Windows, networking, network programming, client-server, client, server, networking, sockets, CGI, HTTP, HTML, API, APIs, Web, services, IPC, TCP, UDP, IP, HTTPD, Twisted