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 ai-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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ai_validator-0.1.4.tar.gz
(5.0 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 ai_validator-0.1.4.tar.gz.
File metadata
- Download URL: ai_validator-0.1.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0fe9434cc9464eade19df5e49a70f486a655f81c97a350573c05b5b25ea9128
|
|
| MD5 |
425251bd8a5346db6d46f6ef24295d44
|
|
| BLAKE2b-256 |
c7585adb6c2e8aa400fe4949017ea6eb82409898fa08e39531ae34bac4920fbe
|
File details
Details for the file ai_validator-0.1.4-py3-none-any.whl.
File metadata
- Download URL: ai_validator-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.5 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 |
02891e3816270024d822b59fc51260acef14d0dc4eed092ce91232fddf237a2e
|
|
| MD5 |
4771b15540e97e9371eae8da3f3d3857
|
|
| BLAKE2b-256 |
f4cee42cf05665390fb1c0dbc0e747d03a37e376dd0207d37eaf7eb9b7489222
|