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.

Added in version 2.1.1

  • IMAP_Unit2_Unit5_Exam_Notes.pdf — combined Unit 2 Back End Development and Unit 5 Docker exam notes.

Metadata

Release files for kalesh-pdf-library 2.1.1

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.1
File Size Uploaded
kalesh_pdf_library-2.1.1.tar.gz 2.9 MB Details

Built distribution (wheel)

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

Total release size: 5.7 MB

Release files / kalesh_pdf_library-2.1.1.tar.gz

Download URL kalesh_pdf_library-2.1.1.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
9149cbf9a2750374aa7fc491ad0ebb65474f23bbbb96effc659b7891c084d0a4
BLAKE2b-256 checksum
How to use checksums
578e77e441159565a80b0f665edd2a4d347d4d4922385cf9761b4ff20e9eca09
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.1-py3-none-any.whl

Download URL kalesh_pdf_library-2.1.1-py3-none-any.whl
Size 2.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ba613e162720bc04d99d42ace17bda162d60cbdd84cec83fcaeded6f3ba4cd02
BLAKE2b-256 checksum
How to use checksums
028c5f0db54fa5eda42e2cd6a1bd7d1237bc234228168e0d32a5e9b4e10de4f0
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

This release

2.1.1 This release

2 release files

2.1.0

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