Skip to main content

PyParsec

PyParsec is a Haskell combinator library, PyParsec is a parsec library for python 3+

Installation

pip install pyparsec 

Usage

Just like this:

>>> from parsec.state import BasicState
>>> from parsec.combinator import many
>>> from parsec.atom import eq
>>> simple = "It is a simple string."
>>> st = BasicState(simple)
>>> p = eq("I").many
>>> p(st)
['I']

What's New

0.6.1

  • add built in combinators decorator
  • add ahead

0.7.0

  • add result class

0.7.2

  • document

0.7.3

  • documents
  • fixed bugs builtin combinators

0.7.4

  • uniform result status checker

0.7.5

  • typo

0.7.6

  • fixed bug in ahead

0.8.0

  • uniform functions as python style

0.8.1 ~ 0.8.4

  • uniform functions as python style
  • fixed buildin methods name
  • add sep_xxx methods to builtin

0.8.5

fixed bug in skip parser

0.8.6

add chunks function

Metadata

Release files for pyparsec 0.8.6

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

Source distribution (sdist)

Source distribution for pyparsec 0.8.6
File Size Uploaded Provenance Actions
pyparsec-0.8.6.tar.gz 7.7 kB Without provenance Details for pyparsec-0.8.6.tar.gz

Release files / pyparsec-0.8.6.tar.gz

Download URL pyparsec-0.8.6.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0807920129d134d94b9bd59175ca1126fe34881f17b286b853cbcb0e5a20b169
BLAKE2b-256 checksum
How to use checksums
dd1dec636317ac94aac1d38c590e81e0a42d5e602841f8ea9b345a65b7c25240
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.0

Security for pyparsec 0.8.6

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.

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