Skip to main content

The parce Python module

import parce

This module parses text into tokens, and is able to reparse only modified parts of the text, using the earlier generated tokens. Tokenized text lives in a tree structure with powerful quering methods for finding tokens and contexts.

The parce module is designed to be fast, and can tokenize in a background thread, so that even when using very large documents, GUI applications that need to be responsive do not grind to a halt.

Main use case: syntax highlighting in text editors, but also understanding the meaning of text to be able to provided context sensitive editing features.

The parce module is written and maintained by Wilbert Berendsen.

Why the name? It’s short, sounds like ‘parse’, and has the meaning of “friend”, “buddy”, “bro.” :-)

The parce package requires Python 3.5+ and is released under the General Public License version 3. Testing is done using pytest-3 in the base directory. Test files can be added to the tests/ directory.

Metadata

Release files for parce 0.5.0

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

Source distribution (sdist)

Source distribution for parce 0.5.0
File Size Uploaded Provenance Actions
parce-0.5.0.tar.gz 86.4 kB Without provenance Details for parce-0.5.0.tar.gz

Release files / parce-0.5.0.tar.gz

Download URL parce-0.5.0.tar.gz
Size 86.4 kB
Tags Source
SHA-256 checksum
How to use checksums
af2b484a7caf227aa1748402c9d613a2d7c4458f9097a31c95dd87e9443bc3ff
BLAKE2b-256 checksum
How to use checksums
76c8bd99a883d243e21d90a7de1a704817f3119c55aec500376504f739be8510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for parce 0.5.0

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

0.5.0 This release

1 release file No provenance

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