Python SDK for AI-powered document validation and text extraction
Project description
AI Validator
Python SDK for AI-powered document validation and text extraction.
Installation
pip install aidoc-validator
Quick Start
from aiValidator import Validator
# Initialize
validator = Validator(
apiKey="sk_test_your_api_key",
productId="pId"
)
# Extract text (user already has publicUrl from their S3/storage)
result = validator.extractText(
publicUrl="https://your-bucket.s3.amazonaws.com/document.pdf",
fc="identityProof",
fid="F123",
uid="U456"
)
print(f"Status: {result['status']}")
print(f"Queue: {result['payload']['queueName']}")
Features
- Text extraction from documents
- Face validation
- Combined validation
- Webhook support for async results
Configuration
Development (default)
validator = Validator(
apiKey="sk_test_...",
productId="pId"
)
# Uses: http://127.0.0.1:5002
Production
validator = Validator(
apiKey="sk_prod_...",
productId="pId",
environment="production"
)
# Uses: https://api.yourproduction.com
Custom URL
validator = Validator(
apiKey="sk_test_...",
productId="pId",
baseUrl="http://your-custom-domain.com"
)
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
aidoc_validator-0.1.5.tar.gz
(5.2 kB
view details)
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 aidoc_validator-0.1.5.tar.gz.
File metadata
- Download URL: aidoc_validator-0.1.5.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa99dc2235bf2ed6ef1a65509c657ed999b8ffae8d0cfde903869a79b60ce032
|
|
| MD5 |
cc651cf5706a6bcc6c94ca6eb498abae
|
|
| BLAKE2b-256 |
e5d10e6578f7cfe0d6e272446474c76f1c1bbf2dae95f0031ce3d650f057a4a5
|
File details
Details for the file aidoc_validator-0.1.5-py3-none-any.whl.
File metadata
- Download URL: aidoc_validator-0.1.5-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a76a27ab698a2ceffd2cf6b91646be0f4e40366c166f384e152eefd18b0c84d6
|
|
| MD5 |
c412e24cb7c97cf936e3c81c3f43f9b4
|
|
| BLAKE2b-256 |
a84c026fbab60b6a3facaaf3e2ff94ba3ed9b9e516dfc257fdde8ce9962872ac
|