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.3.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.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_validator-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9cae5feae75621b5b9dfccc32abe431656dfb403b2e4ea45e75ea0a4bb08e9bf
MD5 629b50e7f66d3038ecec09b3d85ff752
BLAKE2b-256 dc6aa7fbdea99d903566a35f4ff16839d718b4ea40b3f484143056b7ca1e71a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_validator-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d015ba947d6aa0cf45c0c800cc02869d358aa7d9cbcfb9b9c65594e2c4eec503
MD5 d58545467056b984014527922d6a3879
BLAKE2b-256 3336bb25001b8bf6b7b83f775a56195b9d3432cba3148707d9cb3fa832fe892a

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