scanverion
Node and Python are the first supported Scanverion client languages. This package provides synchronous and asynchronous standard-library clients for the OCR API.
Download and install
Install the published package from PyPI:
python -m pip install scanverion==0.1.0
It requires Python 3.10 or newer.
Quickstart
from pathlib import Path
from scanverion import Scanverion
client = Scanverion(
api_key="skv_...",
base_url="http://localhost:5009",
)
result = client.documents.process(
Path("invoice.pdf"),
file_name="invoice.pdf",
content_type="application/pdf",
operations=["Detection", "Scanner"],
scanner_fields=["invoiceNumber", "grossTotal"],
idempotency_key="invoice-2026-0007",
)
print(result["requestId"], result["objects"])
The core methods accept bytes, bytearray, memoryview, pathlib.Path, or binary file objects. AsyncScanverion exposes the same resource groups and uses an injected async transport or asyncio.to_thread with the default transport.
from scanverion import AsyncScanverion
async with AsyncScanverion(api_key="skv_...") as client:
summary = await client.usage.summary(from_date="2026-07-01", to_date="2026-07-31")
API keys are server-side credentials. Do not put them in browser code, mobile binaries, logs, or public fixtures. Processing POST retries happen only when an idempotency key is supplied; safe GET resources may retry transient failures.
Local validation
From the scanverion directory:
python -m unittest discover -s packages/sdk-python/tests -v
python -m compileall packages/sdk-python/src
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 scanverion-0.1.0.tar.gz.
File metadata
- Download URL: scanverion-0.1.0.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc7018982e7df61cfef3bde0095b1a1291d52d1aa6fb076856877afa7eb93eec
|
|
| MD5 |
a8b9d0d7fb258dfa5a4afd8719eb3536
|
|
| BLAKE2b-256 |
07530116fd88f4e0e745ef05cf49e4818baa2f370526e7810208f8aaf24e6354
|
File details
Details for the file scanverion-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scanverion-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
991bc9f31581459802918bda90e970c3e7fb6737306dc9e0fb4bda8f083eba35
|
|
| MD5 |
33fbbda41cd8a1f99532557e4ab74453
|
|
| BLAKE2b-256 |
1f5b2872b2e50ccf62a6463c81090ea81a9e60e4cd49de822dcd801c4820711d
|