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.

Metadata

Release files for pyparsing 2.0.7

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.7
File Size Uploaded Provenance Actions
pyparsing-2.0.7.zip 1.3 MB Without provenance Details for pyparsing-2.0.7.zip
pyparsing-2.0.7.tar.gz 1.1 MB Without provenance Details for pyparsing-2.0.7.tar.gz

Built distributions (wheels)

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

Total release size: 3.8 MB

Release files / pyparsing-2.0.7.zip

Download URL pyparsing-2.0.7.zip
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
9e08c1444c91e194bd17ffdaefce7edb5a6036e57f2bb7df5b6c7776d86f4134
BLAKE2b-256 checksum
How to use checksums
7ef5941ce83056de4ded5044e26bf09dab35ab7c4895097e1fde143c2be6b8ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.7.tar.gz

Download URL pyparsing-2.0.7.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
2ce0db3c70ec0413603d4aea389e4ece34ff93c265649b1c5c7d56e3c2cf19c4
BLAKE2b-256 checksum
How to use checksums
30b612a3f337bf6eb3d681f4f83d6c8da596f99c6ce44797aa91869c1f103729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL pyparsing-2.0.7.win32-py3.5.exe
Size 235.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9043b3c6b0722ec8d47b853768c500ca5246ef1ecd4f9d132a43452c7d3d4588
BLAKE2b-256 checksum
How to use checksums
4959d06692e83ccdee28aa81e58f30498a195a830a935604a7195f4f65575edc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL pyparsing-2.0.7.win32-py3.4.exe
Size 235.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a03b4e7ea18538064b5e1be4a66cdef35370a4e76dd10574ca35c386dbeca560
BLAKE2b-256 checksum
How to use checksums
f94e2c2d59d2ce9b2b182f534526ea1d3a08f7213c4d0fb010b7b05dcd180312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL pyparsing-2.0.7.win32-py3.3.exe
Size 235.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7fa0713063d809d00db2123431a8d603474a62232491e0455cd13761e8fec655
BLAKE2b-256 checksum
How to use checksums
29bb6176dda13bc48dcb6b5956a5d1869670d8cb665da2cc78ef9a933525bc66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyparsing-2.0.7.win32-py3.2.exe

Download URL pyparsing-2.0.7.win32-py3.2.exe
Size 235.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7e194341721f6d5516cfec0d8d99dad6c584373323b6694f8c2f089a00273c07
BLAKE2b-256 checksum
How to use checksums
c7f08c42519449d505e891f408e60fd7472f710d8bef4837a8d31a588c23920d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL pyparsing-2.0.7.win32-py2.7.exe
Size 235.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b58b7d993956dab2efa41ee9424700b4c630fcbd85c41531211d36fbbd6e0592
BLAKE2b-256 checksum
How to use checksums
b578f59dfe936aa0dbff1356179ea9a05a9bf69130ac17679936391ea08ffdbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL pyparsing-2.0.7.win32-py2.6.exe
Size 104.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3470388781fb94eccf75141b0b65490637e2717f983a719011e1aa156eec3d7e
BLAKE2b-256 checksum
How to use checksums
16987508fff57563ca42a6c096cfe119560f3906872e509711e7e87e70527abf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL pyparsing-2.0.7-py2.py3-none-any.whl
Size 38.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
56adc21a4b86391db146b7f74f8c789c396401915703bbd19b793e2a7c30bb46
BLAKE2b-256 checksum
How to use checksums
acde44b122749e143cf87db83edb2d3d239da772e1c3ae4cbeb55964a1bfabdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pyparsing 2.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.7 This release

9 release files No provenance

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