Skip to main content

lrparse

lrparse is a tiny, fast Python library written in C for extracting substrings between left and right delimiters.

It provides two functions:

  • lr() – returns the first substring between delimiters.
  • lrr() – returns all substrings between delimiters.

Installation

pip install lrparse

Usage

import lrparse

# lr() → first match between delimiters
print(lrparse.lr("pre[mid]post", "[", "]"))
# ['mid']

# lrr() → all matches between delimiters
print(lrparse.lrr("<a><b>c", "<", ">"))
# ['a', 'b']

# If delimiters don't exist, you get an empty list
print(lrparse.lr("hello world", "{", "}"))
# []

# If both delimiters are empty, the whole string is returned
print(lrparse.lr("abc", "", ""))
# ['abc']

Metadata

Release files for lrparse 0.1.8

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

Source distribution (sdist)

Source distribution for lrparse 0.1.8
File Size Uploaded Provenance Actions
lrparse-0.1.8.tar.gz 3.4 kB Without provenance Details for lrparse-0.1.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lrparse 0.1.8
File Interpreter ABI Platform Actions
lrparse-0.1.8-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for lrparse-0.1.8-cp313-cp313-win_amd64.whl

Total release size: 13.6 kB

Release files / lrparse-0.1.8.tar.gz

Download URL lrparse-0.1.8.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aedc98feb9e8c512c8570a300f1f3367f8791470a1c17f2026ae04d1d1188e0f
BLAKE2b-256 checksum
How to use checksums
8abad032dfdb460b3292f62337535879210fe6ac865c10255e83f7c2419d60eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / lrparse-0.1.8-cp313-cp313-win_amd64.whl

Download URL lrparse-0.1.8-cp313-cp313-win_amd64.whl
Size 10.2 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
dd20cb7295ef2ca581c8fae2f1ad7858c4f49a2fb6ca5b9bde31e30733719f72
BLAKE2b-256 checksum
How to use checksums
0df39d84b8c50e2b3b62e412fb0442f2f483c10ee5f20d3c951a795967fd8f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for lrparse 0.1.8

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