Skip to main content

Easy-to-use parser combinators, for parsing in pure Python

Project description

Documentation Status Build Status Codecov Downloads

Parsy is an easy and elegant way to parse text in Python by combining small parsers into complex, larger parsers. If it means anything to you, it’s a monadic parser combinator library for LL(infinity) grammars in the spirit of Parsec, Parsnip, and Parsimmon. But don’t worry, it has really good documentation and it doesn’t say things like that!

Parsy requires Python 3.7 or greater.

For a good example of the kind of clear, declarative code you can create using parsy, see the SQL SELECT statement example or JSON parser.

Links:

To contribute, please create a fork and submit a pull request on GitHub, after checking the contributing section of the docs. Thanks!

If you like parsy and think it should be better known, you could:

  • Star this project on GitHub.

  • Vote for it being included on awesome-python.

Parsy was originally written by Jeanine Adkisson, with contributions by other people as can be found in the git commit history.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parsy-2.1.tar.gz (45.3 kB view details)

Uploaded Source

Built Distribution

parsy-2.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file parsy-2.1.tar.gz.

File metadata

  • Download URL: parsy-2.1.tar.gz
  • Upload date:
  • Size: 45.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for parsy-2.1.tar.gz
Algorithm Hash digest
SHA256 fd5dd18d7b0b61f8275ee88665f430a20c02cf5a82d88557f35330530186d7ac
MD5 767cbde9179014ab26af8c532909c5a5
BLAKE2b-256 53eae0853951be3b3e0ca41f962971816065b671ac88e257b99abcd0879198ce

See more details on using hashes here.

File details

Details for the file parsy-2.1-py3-none-any.whl.

File metadata

  • Download URL: parsy-2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for parsy-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f18e7b11985e7802e7e3ecbd8291c6ca243d29820b1186e4c84605db4efffa0
MD5 4b9ae7c22e1219011e2dabdff2932094
BLAKE2b-256 b3051c84e2ebd1eb2817d92ae05a917e60e57b1c83f7b89e63c31df2cd6fcb70

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page