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 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.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

ai_validator-0.1.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file ai_validator-0.1.2.tar.gz.

File metadata

  • Download URL: ai_validator-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for ai_validator-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aa105695725d1824d7f4db016a21881885326d00816494545c4ec18b8b953619
MD5 c2c4d0d7604a52143a9c387511a33524
BLAKE2b-256 6c3d5af9743f4476d3ab50179728c03e3bfc44bafab8b5ce2284fa9737317cfc

See more details on using hashes here.

File details

Details for the file ai_validator-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ai_validator-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for ai_validator-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8627a97af0feb4bfcd4e22eaa552a2d242bc29db16824c85cbc4e208dce2e985
MD5 9089c16c00796a1d64e042c75b6e701b
BLAKE2b-256 fa9590be39d7e27bc68ca219fde219e6ff9853a862f5aec8c77b2a5f5f3d39a5

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