Pyparsing ships with class diagrams and html documentation (check out online version of API reference on PyPI and HTML HowTo on SourceForge).

(Note: downloading the Windows installer .exe omits the documentation, help, and example files. To get these, you must download the .tar or .zip source distribution file, or the separate pyparsing-docs zip file.)

I have had several people ask what software I used to generate these UML diagrams. I used Enterprise Architect, by Sparx Systems. It is not free software, but the code-engineering features are excellent!

Getting Started with Pyparsing (2007)

This is a Short Cut by Paul McGuire, in the O'Reilly online catalog, available here. Some of the topics covered are:
  • Basic structure of a Pyparsing program
  • The Zen of Pyparsing
  • "Hello, World!" revisited, with more elaborate grammar and results processing than has been previously published
  • Parser for S-Expressions
  • Extracting complex table data from a web page
  • Parsing search strings, and writing a search engine in under 100 lines of code

All examples are accompanied by complete source code listings. Throughout the book, helpful tips and notes are covered in separate sidebar discussions, finishing with a short list of additional helpful resources. Lastly, an index adds to the reference value of this book. This is actually getting a little dated, as it reflects pyparsing version 1.4.7, I think. The core concepts are still valid, but there are a number of features that have been added since then, which you can see in the CHANGES file .

A humble request - PLEASE don't download bootleg versions of this e-book from sites such as rapidshare. Or if you have a copy, PLEASE do NOT share it on these sites. RS reports over 30,000 downloads of my book, which would have really helped me pay my son's college tuition.

pyparsing quick reference: A Python text processing tool

John Shipman at New Mexico Tech has put together this website of pyparsing tips and suggestions. John is a bit opinionated in some areas, but I would still recommend this resource - I've heard that it has been very helpful to new folks.

Building Recursive Descent Parsers with Python

A detailed introduction to Pyparsing has been published at O'Reilly's ONLamp Python Developers web page.

The article includes several working examples, along with step-by-step descriptions of the programs.

PyCon 06

I gave two presentations on pyparsing at PyCon06:

Eugene Lazutkin caught the moment for posterity.

(I recycled and updated the material from the first presentation at the 2008 Texas Python UnConference, with updates shown in italics - slides)

Dave Kuhlman How-To: Python 201 -- (Slightly) Advanced Python Topics

Dave Kuhlman put together this how-to in the early days of pyparsing.