Python SDK for the VeriCorp Invoice Extract API — extract structured data from European invoices using AI
Project description
vericorp-invoice-extract
Official Python SDK for the VeriCorp Invoice Extract API — extract structured data from European invoices using AI.
Install
pip install vericorp-invoice-extract
Quick Start
from vericorp_invoice import VeriCorpInvoice
client = VeriCorpInvoice(api_key="your-rapidapi-key")
# Extract data from an invoice
invoice = client.extract("invoice.pdf")
print(invoice.issuer.name)
print(invoice.totals.total_amount)
print(invoice.line_items)
Async Support
from vericorp_invoice import AsyncVeriCorpInvoice
async with AsyncVeriCorpInvoice(api_key="your-rapidapi-key") as client:
invoice = await client.extract("invoice.pdf")
API
VeriCorpInvoice(api_key, *, timeout=30.0, max_retries=1)
Methods
extract(file, *, validate_nif=True, validate_iban=True, include_raw_text=False)— Extract structured data from an invoice (PDF, PNG, JPG, WebP)health()— API health and budget statussupported_formats()— List supported file formats and limits
Error Handling
from vericorp_invoice import VeriCorpInvoice
from vericorp_invoice.errors import (
InvalidFileError,
RateLimitError,
ExtractionFailedError,
)
try:
invoice = client.extract("invoice.pdf")
except InvalidFileError:
print("Invalid file format")
except RateLimitError:
print("Rate limited, try again later")
except ExtractionFailedError:
print("AI could not extract data")
License
MIT
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
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 vericorp_invoice_extract-1.0.0.tar.gz.
File metadata
- Download URL: vericorp_invoice_extract-1.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673e496f1128e28c1b31c72ac4192f03ad8f33f286875e67fdc05b6ce7a3f616
|
|
| MD5 |
fe0c167a7d2654026a39d26a460013c8
|
|
| BLAKE2b-256 |
0fa35c117e736d4f3e2a5c59bb0c3f0417a7256d93faa227ccb4ed16bc82c9f6
|
File details
Details for the file vericorp_invoice_extract-1.0.0-py3-none-any.whl.
File metadata
- Download URL: vericorp_invoice_extract-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6b6a32eb0f779a158049079d23fcee23d9572cc5f9c81ecc7b0e5bf0f7e70e7
|
|
| MD5 |
e80b130b0cfb6755553031b0e10d782a
|
|
| BLAKE2b-256 |
1fa43ae777361aeb90b46618435627bc3b5cf880e22142102a3a4c90ae6ba5c4
|