Skip to content

Releases: veryfi/veryfi-python

5.1.0

14 May 03:59
89797db

Choose a tag to compare

Highlights

This release ships a full command-line interface for the Veryfi SDK so AI agents and shell users can drive the API from a terminal without writing Python. The CLI is purely additive — Client's constructor and every public method are byte-identical to 5.0.1, and all existing tests pass untouched.

What's new

  • veryfi console script (and python -m veryfi) — one Typer sub-app per resource: documents, bank-statements, checks, business-cards, w2s, w8s, w9s, any-docs, classify, with nested line-items, tags, and PDF/W-2 split commands.
  • Env-var-first authVERYFI_CLIENT_ID, VERYFI_USERNAME, VERYFI_API_KEY (plus optional VERYFI_CLIENT_SECRET, VERYFI_BASE_URL, VERYFI_API_VERSION, VERYFI_TIMEOUT); equivalent --flags override env. Missing creds exit 2 with a JSON error on stderr.
  • Agent-friendly I/O — JSON to stdout (with --output json|raw|pretty), structured JSON errors to stderr, exit codes mapped from the HTTP status (clipped to 1-255) so agents can branch without parsing tracebacks.
  • veryfi schema — emits a machine-readable manifest of every command and parameter for tool/MCP registration.
  • Repeatable --field KEY=VALUE / --json-body for endpoints that take **kwargs. Values are JSON-coerced (total=11.23 → number, enabled=true → bool, full JSON objects accepted).
  • Pipe-friendly--file - reads bytes from stdin.
  • Dynamic User-Agentclient_base.py now resolves the version via importlib.metadata, so the User-Agent: Python Veryfi-Python/<version> header always tracks the pbr-derived release with no manual bumps.

Quick start

pip install -U veryfi
export VERYFI_CLIENT_ID=... VERYFI_USERNAME=... VERYFI_API_KEY=...

veryfi documents process --file /tmp/receipt.jpg --category Travel
veryfi classify file --file /tmp/unknown.pdf --document-type receipt --document-type invoice
veryfi schema | jq '.commands[] | .name'

See the new Command-line interface section in the README for the full reference.

Compatibility

  • Python 3.9+
  • All existing Python (from veryfi import Client) code works without changes.
  • New runtime dependency: typer>=0.12.0.

Pull requests in this release

  • #53 — Add veryfi CLI for shell and AI agent usage
  • #54 — Add 5.1.0 entry to NEWS.md

5.0.1

26 Mar 16:20
012e309

Choose a tag to compare

What's Changed

  • Add support for Classify Document API by @dbirulia in #50
  • Add categories parameter to bank statements API and improve README by @dbirulia in #51
  • Update release workflow, bump version to 5.0.1, and fix signup URL by @dbirulia in #52

New Contributors

Full Changelog: 5.0.0...5.0.1

5.0.0 Add new endpoints

20 Mar 15:28
ebe324a

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.0.1...5.0.0

4.0.1 Support python 3.12

26 Aug 14:12
e2d14d6

Choose a tag to compare

What's Changed

  • Python deprecation by @manycoding in #45
  • BREAKING - api_version parameter removed from Client. Client uses v8.

Full Changelog: 3.4.2...4.0.1

3.4.1 New tags methods

02 Jan 19:44
87053d8

Choose a tag to compare

What's Changed

Full Changelog: 3.4.0...3.4.1

3.4.0

29 Nov 17:57
f7040b0

Choose a tag to compare

What's Changed

Full Changelog: 3.3...3.4.0

Add parameters to get documents, drop python 3.6

10 Jan 17:07
d3a1b6d

Choose a tag to compare

  1. Drop python 3.6 #36
  2. Add get parameters #35

3.2.1

24 Nov 16:21
068ebc9

Choose a tag to compare

W9

27 May 16:28
312d836

Choose a tag to compare

W9

Added support for w9 tax forms processing:

  • process_w9_document_url
  • process_w9_document

What's Changed

New Contributors

Full Changelog: 3.1.0...3.2.0

Add support for operations with line items

15 Mar 17:30
3bba1ae

Choose a tag to compare

This release adds support for operations with line items:

  • Retrieve all line items for a document.
  • Retrieve a line item for existing document by ID.
  • Add a new line item on an existing document.
  • Update an existing line item on an existing document.
  • Delete all line items on an existing document.
  • Delete an existing line item on an existing document.