Metadata-Version: 2.1
Name: pdfathom
Version: 0.1.1
Summary: Query PDFs in natural language from the command-line
License: CC0-1.0
Author: Liam
Author-email: liam@scalzulli.com
Requires-Python: >=3.8,<4.0
Classifier: License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: chromadb (>=0.3.21,<0.4.0)
Requires-Dist: langchain (>=0.0.144,<0.0.145)
Requires-Dist: openai (>=0.27.4,<0.28.0)
Requires-Dist: pypdf (>=3.8.0,<4.0.0)
Requires-Dist: rich (>=13.3.4,<14.0.0)
Requires-Dist: tiktoken (>=0.3.3,<0.4.0)
Description-Content-Type: text/markdown

**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:

```bash
$ pip install pdfathom
```

### Usage

Below is the output of `pdfathom --help`:

```present python3 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.

