Brandon Rhodes

Twitter Stack Overflow Flickr

Talks

2014 April 13 The Day of the EXE Is Upon Us
2014 April 11 All Your Ducks In A Row: Data Structures in the Standard Library and Beyond
2013 October 13 The Clean Architecture in Python
2013 August 10 Skyfield and 15 Years of Bad APIs
2013 July 27 Keynote: Sine Qua Nons
2013 May 15 Keynote: Copernican Refactoring
2013 March 15 The Naming of Ducks: Where Dynamic Types Meet Smart Conventions
2013 January 11 Touring the Universe with Scientific Python
2012 November 10 A Python Æsthetic: Beauty and Why I Python
2012 July 29 Python Design Patterns 1
2012 March 12 Flexing SQLAlchemy's Relational Power
2012 March 11 Python, Linkers, and Virtual Memory
2011 September 24 Know Thy Database
2011 July 31 Procedures, Objects, Reusability: httplib, urllib2, and Their Discontents
2011 July 31 Names, Objects, and Plummeting From The Cliff
2011 July 30 Squinting at Python Objects
2010 February 19 Learning Hosting Best Practices From WebFaction
2010 February 19 The Mighty Dictionary
2008 March 15 Using Grok to Walk Like a Duck

Recent Writing

2014 February 14 Learning Pandas through payroll taxes and paystubs
2013 November 13 Choosing your salary under a SEP, SIMPLE, and a Solo 401k
2013 September 3 Untangling the Big Pharoah’s “Terrifying” Chart
2013 August 2 Example PyCon talk proposals
2013 February 25 OS-9 Keyboard Codes
2013 February 14 WSGI and truncated chunked response bodies
2013 January 12 IPython Notebook and Astronomy at CodeMash

Complete list of posts RSS symbol RSS Feed

Foundations of Python Network Programming

book cover

I recently revised the popular book Foundations of Python Network Programming for Apress Media, adding several chapters and updating all of its 2004 source code to use modern Python libraries and techniques. I replaced its guides to obsolete technologies (like the old HTMLParser and mod_python modules) with more modern libraries including lxml wsgiref and json.

While the code in the printed book uses Python 2 syntax, the public source code repository contains Python 3 versions of all of the examples as well (unless a library has not been ported yet). Here are links to the source code and a free sample chapter:

Public source code — includes every listing in the book
Free sample — Chapter 10, “Screen Scraping”

I am now revising the book again to produce a third edition featuring Python 3 plus a whole list of new technologies including requests and scapy!


©2014