Skip to main content

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"
)

Metadata

Release files for ai-doc-validator-sdk 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-doc-validator-sdk 0.1.1
File Size Uploaded Provenance Actions
ai_doc_validator_sdk-0.1.1.tar.gz 5.3 kB Without provenance Details for ai_doc_validator_sdk-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ai-doc-validator-sdk 0.1.1
File Interpreter ABI Platform Actions
ai_doc_validator_sdk-0.1.1-py3-none-any.whl Python 3 none any Details for ai_doc_validator_sdk-0.1.1-py3-none-any.whl

Total release size: 11.1 kB

Release files / ai_doc_validator_sdk-0.1.1.tar.gz

Download URL ai_doc_validator_sdk-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
40627fcd7b07c340bb0a7527cc0657ea921d91bc18afbfd5930614a52809bd0e
BLAKE2b-256 checksum
How to use checksums
56ce9f9b1fd99583a27907f7c4e93d58cf98bafde805e2750aaac4c28b6f893d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release files / ai_doc_validator_sdk-0.1.1-py3-none-any.whl

Download URL ai_doc_validator_sdk-0.1.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff923427ece076cf6ed285ed5cf7bbae772b9fc23bbcda64419cee06d6f49350
BLAKE2b-256 checksum
How to use checksums
9dc54a48778eecb8ba5c993332b5e94936c2f3aa35235f94b184394a720629eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Security for ai-doc-validator-sdk 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page