A CLI tool for automatically filling PDF forms using Claude
Project description
FormFill
FormFill is a CLI tool that uses LLMs to automatically fill out PDF forms.
Installation
Prerequisites
On Mac, pdf2image requires installation of poppler:
$ brew install poppler
Installing FormFill
$ pip install -e .
Authentication
You must provide your Anthropic API key via environment variable:
$ export ANTHROPIC_API_KEY=sk-ant-api-***
Usage
FormFill can take input data either directly as a string or from a CSV file:
# Using a string input
$ formfill path/to/form.pdf -s "Name: John Smith, Age: 30, Occupation: Engineer"
# Using a file
$ formfill path/to/form.pdf -f data.csv
The filled form will be saved as {original_name}_filled.pdf
in the same directory as the command is run.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
formfill-0.1.0.tar.gz
(15.0 kB
view details)
Built Distribution
formfill-0.1.0-py3-none-any.whl
(18.0 kB
view details)
File details
Details for the file formfill-0.1.0.tar.gz
.
File metadata
- Download URL: formfill-0.1.0.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb54762d1d75830637dfa648d3fb67e00ff82547f1a83cfec0dd59415f8185fd |
|
MD5 | 3340634ce107bc51e450b835b3ee76bb |
|
BLAKE2b-256 | 156b4e49198be7c607c7120d5fb6e224a8ff4e071c535740045d2815c7927776 |
File details
Details for the file formfill-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: formfill-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f8244a8759d8a56b81274881fcd7628fa6138d3f72794aaef1ab1cf0d870286 |
|
MD5 | e39161cbfd4ae8545d6300fa895da3f4 |
|
BLAKE2b-256 | 61f8e29df6971b325a9bfbdf20334f0ba408e81ff340d7b4227a6a2275381045 |