Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

formfill-0.1.0-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

Supported by

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