Skip to main content

pdfathom is a command-line utility that lets you query PDF documents with natural language.

Installation

You can install it via the pip package manager:

$ pip install pdfathom

Usage

Below is the output of pdfathom --help:

usage: pdfathom [-h] [--config CONFIG] [--openai_api_key OPENAI_API_KEY]
                [--chunk_size CHUNK_SIZE] [--chunk_overlap CHUNK_OVERLAP]
                pdfs [pdfs ...]

positional arguments:
  pdfs                  Path to the pdf file(s) or URL(s)

options:
  -h, --help            show this help message and exit
  --config CONFIG, -c CONFIG
                        Path to the configuration file
  --openai_api_key OPENAI_API_KEY, -k OPENAI_API_KEY
                        OpenAI API key
  --chunk_size CHUNK_SIZE, -s CHUNK_SIZE
                        Chunk size
  --chunk_overlap CHUNK_OVERLAP, -o CHUNK_OVERLAP
                        Chunk overlap

Configuration

pdfathom looks for a configuration file called .pdfathom.json located in your home directory, and it looks like:

{"openai_api_key": "<OPENAI-API-KEY>"}

You will be prompted for an OpenAI API key upon running the program if it's not already present in the configuration file, this will also handle creating the configuration file for you.

Metadata

Release files for pdfathom 0.1.4

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

Source distribution (sdist)

Source distribution for pdfathom 0.1.4
File Size Uploaded Provenance Actions
pdfathom-0.1.4.tar.gz 7.4 kB Without provenance Details for pdfathom-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdfathom 0.1.4
File Interpreter ABI Platform Actions
pdfathom-0.1.4-py3-none-any.whl Python 3 none any Details for pdfathom-0.1.4-py3-none-any.whl

Total release size: 16.5 kB

Release files / pdfathom-0.1.4.tar.gz

Download URL pdfathom-0.1.4.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fe9169dae2710a3f65126e65c40d4fee5e191d7933722573413d04d4fefa6904
BLAKE2b-256 checksum
How to use checksums
bc80348eb7300f03e6fca3d7d33c13d3a1fa5ab1324cdf30b6b8bacb4ff0583c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Darwin/22.4.0

Release files / pdfathom-0.1.4-py3-none-any.whl

Download URL pdfathom-0.1.4-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
152e131ca7c98655abe184f1f10a51e824b248c530d3a14224756da2f6c8cb71
BLAKE2b-256 checksum
How to use checksums
b6f65a33c1e2358ddf7456f437f934a89367c6ad2099c422a16af5c9d430c1a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Darwin/22.4.0

Security for pdfathom 0.1.4

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