Skip to main content
====================================
PyParsing -- A Python Parsing Module
====================================

Introduction
============

The pyparsing module is an alternative approach to creating and executing
simple grammars, vs. the traditional lex/yacc approach, or the use of
regular expressions. The pyparsing module provides a library of classes
that client code uses to construct the grammar directly in Python code.

Here is a program to parse "Hello, World!" (or any greeting of the form
"<salutation>, <addressee>!"):

from pyparsing import Word, alphas
greet = Word( alphas ) + "," + Word( alphas ) + "!"
hello = "Hello, World!"
print hello, "->", greet.parseString( hello )

The program outputs the following:

Hello, World! -> ['Hello', ',', 'World', '!']

The Python representation of the grammar is quite readable, owing to the
self-explanatory class names, and the use of '+', '|' and '^' operator
definitions.

The parsed results returned from parseString() can be accessed as a
nested list, a dictionary, or an object with named attributes.

The pyparsing module handles some of the problems that are typically
vexing when writing text parsers:
- extra or missing whitespace (the above program will also handle
"Hello,World!", "Hello , World !", etc.)
- quoted strings
- embedded comments

The .zip file includes examples of a simple SQL parser, simple CORBA IDL
parser, a config file parser, a chemical formula parser, and a four-
function algebraic notation parser. It also includes a simple how-to
document, and a UML class diagram of the library's classes.



Installation
============

Do the usual:

python setup.py install

(pyparsing requires Python 2.6 or later.)

Or corresponding commands using pip, easy_install, or wheel:

pip install pyparsing

easy_install pyparsing

wheel install pyparsing


Documentation
=============

See:

HowToUsePyparsing.html


License
=======

MIT License. See header of pyparsing.py

History
=======

See CHANGES file.

Release files for pyparsing 2.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for pyparsing 2.0.5
File Size Uploaded
pyparsing-2.0.5.zip 1.3 MB Details
pyparsing-2.0.5.tar.gz 1.1 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyparsing 2.0.5
File
pyparsing-2.0.5.win32-py3.5.exe Details
pyparsing-2.0.5.win32-py3.4.exe Details
pyparsing-2.0.5.win32-py3.3.exe Details
pyparsing-2.0.5.win32-py2.7.exe Details
pyparsing-2.0.5.win32-py2.6.exe Details
pyparsing-2.0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 3.5 MB

Release files / pyparsing-2.0.5.zip

Download URL pyparsing-2.0.5.zip
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
a1b439e5dd08abb7bd2d4fb8a720ea96fe78803edcbfc3e7207c672285767bfa
BLAKE2b-256 checksum
How to use checksums
f4b3522c4f0a103a4e48b821b89ce67564b405d83a4b234c316fca007c1d52bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.5.tar.gz

Download URL pyparsing-2.0.5.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
58756bf33e989d84ac72142e4ca558cf10c778a3233edb0a86632f271409ba9e
BLAKE2b-256 checksum
How to use checksums
3a34f79db816d4d7506786fe4a7c804e11e39225e8b8f93a58e406edaa70e936
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.5.win32-py3.5.exe

Download URL pyparsing-2.0.5.win32-py3.5.exe
Size 235.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d4d442cc65fbdac92c4cd68beaa184decde762927d5f3b7646a579b5fd49acfb
BLAKE2b-256 checksum
How to use checksums
55101779c99c4ea99bc55add8dd4dba26ac4a7b6889bc6506f2d4dd3669cb1d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.5.win32-py3.4.exe

Download URL pyparsing-2.0.5.win32-py3.4.exe
Size 235.0 kB
Tags Source
SHA-256 checksum
How to use checksums
372adfc0c6b4e72fde281f71368f251fe131d4a194db5eb53d8b4cb570168713
BLAKE2b-256 checksum
How to use checksums
baf22d5f00b5a4ee6334a39d80c946f5208922013a39c9876f3b84f18d5f14e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.5.win32-py3.3.exe

Download URL pyparsing-2.0.5.win32-py3.3.exe
Size 235.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8e179886ba1fea06cb52e7684a512feab5739d5d80709c7ac4988cb4b53a8adc
BLAKE2b-256 checksum
How to use checksums
e4ae66f7bc7f71bbec526e10ba8d30fa9fc4f7369f3d281c4d5e8f1cfd0511f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.5.win32-py2.7.exe

Download URL pyparsing-2.0.5.win32-py2.7.exe
Size 235.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a74f9a7d9ee6451f4bf26953ae189c50e42bf35f9adf2527fc0660211d6c1d1a
BLAKE2b-256 checksum
How to use checksums
1998b54fad3088089ed5aba8c86f51c623f9bd279d3c7cdb8369ab80ef1eee39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.5.win32-py2.6.exe

Download URL pyparsing-2.0.5.win32-py2.6.exe
Size 104.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9a99bdbcac07f49dca80eb05fac9f03e9a8151a84123605df4d2fce983d46256
BLAKE2b-256 checksum
How to use checksums
cbf46f41ac39cbd9b65c81a257d6978dde8638a897b68a0662160a906077b099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.5-py2.py3-none-any.whl

Download URL pyparsing-2.0.5-py2.py3-none-any.whl
Size 38.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
29cfa7c2c22ece030a7da3181542e099355b59d8be34c6d6f9ae87766e369615
BLAKE2b-256 checksum
How to use checksums
2b25398db7ce5e2118af11f352e652569ecb76005f545e3a81b5c55cf8239913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

3.3.3

2 release files

3.3.2

2 release files

3.3.1

2 release files

3.3.0

2 release files

3.2.5

2 release files

3.2.4

2 release files

3.2.3

2 release files

3.2.2

2 release files

3.2.1

2 release files

3.2.0

2 release files

3.1.4

2 release files

3.1.3

2 release files

3.1.2

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.9

2 release files

3.0.8

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.4.7

2 release files

2.4.6

2 release files

2.4.5

2 release files

2.4.4

2 release files

2.4.3

2 release files

2.4.2

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.2.0

7 release files

2.1.9

8 release files

2.1.8

8 release files

2.1.7

8 release files

2.1.6

8 release files

2.1.5

8 release files

2.1.4

8 release files

2.1.3

7 release files

2.1.2

8 release files

2.1.1

8 release files

2.1.0

8 release files

2.0.7

9 release files

2.0.6

8 release files

This release

2.0.5 This release

8 release files

2.0.4

8 release files

2.0.3

10 release files

2.0.2

9 release files

2.0.1

8 release files

2.0.0

6 release files

1.5.7

5 release files

1.5.6

9 release files

1.5.5

9 release files

1.5.4

9 release files

1.5.3

9 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

1 release file

1.4.11

1 release file

1.4.8

1 release file

1.4.7

1 release file

1.4.6

1 release file

1.3.3

1.2

1.1.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page