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-doc-validator-sdk
Quick Start
from ai-doc-Validator-sdk import Validator
# Initialize
validator = Validator(
key="sk_test_xxxxxxxxxxxxxxxxxxxxxxxx", # Your API key
pid="tnmc", # Product ID (e.g., tnmc, kyc_pro, etc.)
mid="USQDQVKC68" # Merchant/User ID (_id from your users collection)
)
# Extract text from a document
result = validator.extractText(
publicUrl="https://your-bucket.s3.amazonaws.com/id-card.pdf",
extra={
"fc": "kyc",
"fid": "F123456",
"uid": "user_789",
"ruid": "request_abc123"
}
)
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
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_doc_validator_sdk-0.1.1.tar.gz.
File metadata
- Download URL: ai_doc_validator_sdk-0.1.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40627fcd7b07c340bb0a7527cc0657ea921d91bc18afbfd5930614a52809bd0e
|
|
| MD5 |
a66edd35b2d6ff8678dd23d5f3cd65ab
|
|
| BLAKE2b-256 |
56ce9f9b1fd99583a27907f7c4e93d58cf98bafde805e2750aaac4c28b6f893d
|
File details
Details for the file ai_doc_validator_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ai_doc_validator_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 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 |
ff923427ece076cf6ed285ed5cf7bbae772b9fc23bbcda64419cee06d6f49350
|
|
| MD5 |
06120573b572152244b1b60edee57088
|
|
| BLAKE2b-256 |
9dc54a48778eecb8ba5c993332b5e94936c2f3aa35235f94b184394a720629eb
|