CLI for AI-assisted PDF form filling via Simplicity Form-Filler API
Project description
simplicity-cli
CLI for AI-assisted PDF form filling through the Simplicity Form-Filler API.
PyPI package name: ai-pdf-filler
Installed command: simplicity-cli
Install
pip install ai-pdf-filler
Or with uv:
uv tool install ai-pdf-filler
Authentication
Set your API key before running commands:
Get API keys from simplicity.ai.
export SIMPLICITY_AI_API_KEY="your_api_key"
Or save it once locally:
simplicity-cli --api-key "your_api_key"
You can also pass it explicitly:
simplicity-cli --api-key "your_api_key" status TASK_ID
Auth precedence:
--api-keySIMPLICITY_AI_API_KEY- saved local key (from
simplicity-cli --api-key "...")
Quick start
Get a one-page CLI guide:
simplicity-cli help
Create and autofill from a local form PDF using text context:
simplicity-cli new \
--form-file ./form.pdf \
--context "first_name: John; last_name: Smoke; dob: 1990-07-07"
Create and autofill using uploaded source documents:
simplicity-cli new \
--form-file ./form.pdf \
--source-file ./w2.pdf \
--source-file ./drivers_license.pdf
Autofill an existing form:
simplicity-cli existing FORM_ID --context "first_name: John; last_name: Smoke; dob: 1990-07-07"
--context is the source data used to fill form fields.
--instructions is optional guidance for how autofill should behave.
Check or wait on tasks:
simplicity-cli status TASK_ID
simplicity-cli wait TASK_ID
Command reference
For full syntax/examples at any time, run:
simplicity-cli help
new
Create a digital form from a PDF and run autofill.
Common usage:
simplicity-cli new --form-file ./form.pdf --context "first_name: John; last_name: Smoke; dob: 1990-07-07"
simplicity-cli new --form-file ./form.pdf --source-file ./w2.pdf --source-file ./id.pdf
simplicity-cli new --form-url https://example.com/form.pdf --source-url https://example.com/source.pdf
Validation rules:
- Exactly one of
--form-fileor--form-urlis required. - You must provide at least one source via
--source-file/--source-urlor--context/--context-file. --contextand--context-fileare mutually exclusive.--instructionsand--instructions-fileare mutually exclusive.--outputcannot be used with--no-download.
Useful flags:
--no-waitreturns immediately with a task ID.--no-downloadskips PDF download after completion.--output PATHwrites downloaded output to a specific path.--poll-interval-secondsand--max-wait-secondscontrol polling behavior.
existing
Autofill an existing form ID.
Common usage:
simplicity-cli existing FORM_ID --context "first_name: John; last_name: Smoke; dob: 1990-07-07"
simplicity-cli existing FORM_ID --context-file ./context.txt --output ./filled.pdf
simplicity-cli existing FORM_ID --no-wait --no-download
Context and instructions semantics:
--context/--context-fileprovide the data to populate form fields.--instructions/--instructions-fileprovide optional behavior guidance and do not replace form data.
Validation rules:
FORM_IDis required.--contextand--context-fileare mutually exclusive.--instructionsand--instructions-fileare mutually exclusive.--outputcannot be used with--no-download.
status
Get current task details.
simplicity-cli status TASK_ID
wait
Poll until completion, failure, or timeout.
simplicity-cli wait TASK_ID --poll-interval-seconds 2 --max-wait-seconds 1800
Legacy aliases
Backward-compatible nested commands are still accepted:
simplicity-cli fill new ...simplicity-cli fill existing ...simplicity-cli task status ...simplicity-cli task wait ...
Output modes
Human-readable output is default. Use strict JSON for scripts:
simplicity-cli --json status TASK_ID
In --json mode, each command writes exactly one JSON object.
Exit codes
0: success2: usage/validation/auth missing3: auth rejected (401/403)4: API/request error5: task failed6: wait timeout7: download error
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_pdf_filler-0.1.3.tar.gz.
File metadata
- Download URL: ai_pdf_filler-0.1.3.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
900ca7dd6605532af6cb522feb6546ed65f37b0d9aa31ae007eec60dd8fd55ab
|
|
| MD5 |
993319f8dd751790f92ff0974d730d53
|
|
| BLAKE2b-256 |
29d6f07acdddddfd7f79b5eeefe0a3ff0d3756ac7f5dd4ac2ffdb43acabd275f
|
File details
Details for the file ai_pdf_filler-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ai_pdf_filler-0.1.3-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d20b4a9b807342e5aa8fd11e4c2c1ed7259adb5e144a8d55e45c252f2fc1ce0
|
|
| MD5 |
4267681313f5240f361fc0d29347b5b0
|
|
| BLAKE2b-256 |
0f60c00ad6d07359741df98932903cb089fd312a3420bb4c964db8ed8e94795b
|