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.6.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.6.0
File Size Uploaded Provenance Actions
parce-0.6.0.tar.gz 102.2 kB Without provenance Details for parce-0.6.0.tar.gz

Release files / parce-0.6.0.tar.gz

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

Security for parce 0.6.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.6.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