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

Uploaded Python 3

File details

Details for the file aidoc_validator-0.1.6.tar.gz.

File metadata

  • Download URL: aidoc_validator-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 ddb9c8ed904d2763f8a700b44d6d395dc18ea98806881465c695b85c532512bd
MD5 19fbb5547e192b971c12eef52f17dd99
BLAKE2b-256 137636c7abf1d9f3333c8fa750b51aa21a4e162f9adad44d7d0704d36186bb2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aidoc_validator-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c1152cd135cab8b5d5cc4b3420bd4dc6388e19ce9251dae71a093ea1dc98e590
MD5 17b306e0b95be6a1e1b64df51b80a1ee
BLAKE2b-256 fc3a518f06274993f0af19aa173f4018fa7dd090f164ffe30ce0457036c38830

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