Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aidoc_validator-0.1.5-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

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

Hashes for aidoc_validator-0.1.5.tar.gz
Algorithm Hash digest
SHA256 aa99dc2235bf2ed6ef1a65509c657ed999b8ffae8d0cfde903869a79b60ce032
MD5 cc651cf5706a6bcc6c94ca6eb498abae
BLAKE2b-256 e5d10e6578f7cfe0d6e272446474c76f1c1bbf2dae95f0031ce3d650f057a4a5

See more details on using hashes here.

File details

Details for the file aidoc_validator-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for aidoc_validator-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a76a27ab698a2ceffd2cf6b91646be0f4e40366c166f384e152eefd18b0c84d6
MD5 c412e24cb7c97cf936e3c81c3f43f9b4
BLAKE2b-256 a84c026fbab60b6a3facaaf3e2ff94ba3ed9b9e516dfc257fdde8ce9962872ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page