Skip to main content

PDF Auto Highlighter

Project description

pah

PyPI - pah

PDF Auto Highlighter

Usage

pip install pah

As a CLI tool

$ uv run pah --help
usage: pah [-h] --output_pdf_path OUTPUT_PDF_PATH --llm_model LLM_MODEL [--output_highlights_path OUTPUT_HIGHLIGHTS_PATH]
           [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
           input_pdf_path

pah: PDF AutoAuto Highlighter

positional arguments:
  input_pdf_path        Input PDF file

options:
  -h, --help            show this help message and exit
  --output_pdf_path OUTPUT_PDF_PATH
                        Output PDF file with highlights
  --llm_model LLM_MODEL
                        LLM model to use (See https://litellm.vercel.app/docs/providers)
  --output_highlights_path OUTPUT_HIGHLIGHTS_PATH
                        Output JSON file for highlights
  --log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Logging level
pah input.pdf --output_pdf_path output.pdf --llm_model gpt-4o

As a Python library

from pah import PAH

pah = PAH(
    input_pdf_path="input.pdf",
    output_pdf_path="output.pdf",
    llm_model="gpt-4o",
    output_highlights_path="highlights.json"
)
pah.highlight()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pah-1.0.0.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pah-1.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pah-1.0.0.tar.gz.

File metadata

  • Download URL: pah-1.0.0.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for pah-1.0.0.tar.gz
Algorithm Hash digest
SHA256 58d0d61d90723e004500c284d6d981bbd8d47877f40105365bdda17849c80f9c
MD5 30fec93b402857ccf72bd92c535d8818
BLAKE2b-256 14bb972cba7b3bfab7af9d10fde46169f9a874ec68cd6b3890a226a16bca2434

See more details on using hashes here.

File details

Details for the file pah-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pah-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for pah-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e27c2d1bd4198eed6474628c5289d0dca607a9a8caf2fa00e642f4b0d31a4605
MD5 71c22f4118f0dd3effeed3e5793661fa
BLAKE2b-256 f98acf7b85e755a44f545bad39951715faf52cf217bf5a13f385dae8a3f26d25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page