lens-qda
Python utilities for LENS, a local-first qualitative data analysis (QDA) desktop application.
This package bundles the same PDF text-extraction pipeline that the LENS desktop app uses to ingest PDF documents, exposing it as a small CLI so it can also be used directly from Python or from shell scripts.
Install
pip install lens-qda
Requires Python 3.8+ and the prebuilt wheels for pdfplumber and its
dependencies (cryptography, pillow, pdfminer.six, ...) on PyPI; no
compiler is needed on supported platforms.
CLI usage
# Print plain text extracted from a PDF (one paragraph per page):
lens-qda extract path/to/paper.pdf
# Emit the same JSON envelope the LENS desktop sidecar produces:
lens-qda extract paper.pdf --json
# Save the extracted text to a file:
lens-qda extract paper.pdf -o paper.txt
# Tune pdfplumber's tolerances (defaults match the sidecar):
lens-qda extract paper.pdf --x-tolerance 3 --y-tolerance 3
The --json schema matches the contract the LENS Tauri sidecar already
implements:
{ "success": true, "text": "...all pages, joined by blank lines..." }
On failure:
{ "success": false, "error": "<exception message>" }
(the process exits with status 1 in that case).
Programmatic usage
from pathlib import Path
import json, subprocess
result = subprocess.run(
["lens-qda", "extract", "paper.pdf", "--json"],
capture_output=True, text=True, check=True,
)
envelope = json.loads(result.stdout)
assert envelope["success"], envelope["error"]
corpus = envelope["text"]
License
MIT — same as the parent LENS project.
Metadata
Release files for lens-qda 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lens_qda-0.2.5.tar.gz | 8.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lens_qda-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.5 kB
Release files / lens_qda-0.2.5.tar.gz
| Download URL | lens_qda-0.2.5.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25c1a89ea21e6075ce9fc1a95ccafbcff18cd3946da66955cc03fa83189b1469
|
|
BLAKE2b-256 checksum How to use checksums |
bcc49c14fa4cd2a76eaa6c6f928996c7542e339e64b619a658f20fb0632b4d46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 28, 2026.
Transparency logRelease files / lens_qda-0.2.5-py3-none-any.whl
| Download URL | lens_qda-0.2.5-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82b55c4843a2693730cc6feabed8543af95512fadf16e45a2292eb7580897440
|
|
BLAKE2b-256 checksum How to use checksums |
832d5134f5f071266e0e07f4d6cbf857c586015e3d3699971b763d025750ad37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 28, 2026.
Transparency logSecurity for lens-qda 0.2.5
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for lens_qda-0.2.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 28, 2026.
Transparency logA 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.