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.1.tar.gz (5.3 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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_validator-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

Hashes for ai_validator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 87cdad527c41d3e3d83beb6e0abe5752fe4759b837cb77d9b9818100d6a35143
MD5 03d2e592552f5108dd40577dc7b6560a
BLAKE2b-256 dee87ad32d42aca22d1bf6ae231fbf65ddac28e04edf9d3ea7410cd14aeb1a70

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_validator-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b40988715cce18e33b6fb6d4f4f874c8eb7857f5cd4e135a1c1a4a64de10b244
MD5 e7bf8b526529212ec0acac5dc1f08ba5
BLAKE2b-256 645b6e85b7568388a553b43fe4045ddeae125f6e81d09e6c2ff9ec42d5f6700d

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