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, not already taken and sounds like ‘parse’ :-)

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.4.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.4.0
File Size Uploaded Provenance Actions
parce-0.4.0.tar.gz 65.4 kB Without provenance Details for parce-0.4.0.tar.gz

Release files / parce-0.4.0.tar.gz

Download URL parce-0.4.0.tar.gz
Size 65.4 kB
Tags Source
SHA-256 checksum
How to use checksums
20024f44c8b0fcd450c152eb75fef91aab5509714e258b58d9097e3d137ae587
BLAKE2b-256 checksum
How to use checksums
c63e16a61fcb6642d350e6db6f0cf3a57a1669cb9d18a3565897f3ab5e0be9b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for parce 0.4.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.4.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