Skip to main content

Kalesh v2.1.0

Kalesh is a cross-platform Python library and numbered-menu CLI for searching PDFs offline. Six IMAP backend-development and Docker PDFs are bundled by default.

Install for development / from this project

python -m venv .venv
# macOS/Linux:
source .venv/bin/activate
# Windows PowerShell:
# .\.venv\Scripts\Activate.ps1
python -m pip install -e .
python -m kalesh

After publishing to PyPI

The distribution name is kalesh-pdf-library; the import/module name is kalesh.

python -m pip install kalesh-pdf-library
python -m kalesh

python -m kalesh works after installation. Standard Python does not automatically install a missing module when -m is used.

Menu

Main menu: 1 browse documents, 2 search all PDFs, 3 statistics, 4 rebuild index, 5 health check, 6 configure an additional PDF folder, 7 show paths, 0 exit.

Inside a document: browse pages entirely in the terminal, inspect an embedded PDF outline if available, read the full extracted text in chunks, search within the selected PDF, or export extracted text to a .txt file. Kalesh never opens an external PDF viewer.

Import from Python

import kalesh
results = kalesh.search("Docker", limit=5)
for result in results:
    print(result["document"], result["page"], result["snippet"])

Direct commands

python -m kalesh list
python -m kalesh search Docker -n 5
python -m kalesh index
python -m kalesh where

Search is local text search using pypdf; scanned PDFs without a text layer need OCR. Kalesh doesn't upload your files or queries.

Metadata

Release files for kalesh-pdf-library 2.1.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 kalesh-pdf-library 2.1.0
File Size Uploaded
kalesh_pdf_library-2.1.0.tar.gz 2.8 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for kalesh-pdf-library 2.1.0
File Interpreter ABI Platform
kalesh_pdf_library-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 MB

Release files / kalesh_pdf_library-2.1.0.tar.gz

Download URL kalesh_pdf_library-2.1.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
85872164719ad1322299166c783a82999b30c1389dc998ea1da8932b4fac75df
BLAKE2b-256 checksum
How to use checksums
a476192c60759edf6e4b317685c4cc0faa978d9f6a8febfc77074173a5c06c4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / kalesh_pdf_library-2.1.0-py3-none-any.whl

Download URL kalesh_pdf_library-2.1.0-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
916a25f746582def8a2fe4bb4d7910e329bd5712966ca017ee481ed9de60660a
BLAKE2b-256 checksum
How to use checksums
e8ca8fcbb8e50db8d97babc79ba9de18535eaedff18de9808068c8a847b679ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release history Release notifications | RSS feed

2.1.1

2 release files

This release

2.1.0 This release

2 release files

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