Skip to main content
You are not a member of this wiki.
Pages and Files
29 October 2015
Download / Installation
Whos Using Pyparsing
Helpful Methods / Parse Actions
Tips / Documentation
Pyparsing ships with class diagrams and html documentation (check out online version of
on PyPI and
(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
This is a Short Cut by Paul McGuire, in the O'Reilly online catalog, available
. 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.
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 this year.
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.
I gave two presentations on pyparsing at PyCon06:
Introduction to Pyparsing: An Object-oriented Easy-to-Use Toolkit for Building Recursive Descent Parsers
An Interactive Adventure Game Engine Built Using Pyparsing
caught the moment
(I recycled and updated the material from the first presentation at the
2008 Texas Python UnConference
, with updates shown in italics -
Dave Kuhlman How-To: Python 201 -- (Slightly) Advanced Python Topics
Dave Kuhlman put together
in the early days of pyparsing.
help on how to format text
Turn off "Getting Started"