Metadata-Version: 2.4
Name: ai-validator
Version: 0.1.4
Summary: Python SDK for AI-powered document validation and text extraction
Project-URL: Homepage, https://github.com/techrox/ai-validator
Project-URL: Documentation, https://docs.yourcompany.com
Project-URL: Repository, https://github.com/techrox/ai-validator
Project-URL: Bug Tracker, https://github.com/techrox/ai-validator/issues
Author-email: TechRox Team <support@yourcompany.com>
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.7
Requires-Dist: requests>=2.25.0
Provides-Extra: dev
Requires-Dist: black>=22.0; extra == 'dev'
Requires-Dist: flake8>=4.0; extra == 'dev'
Requires-Dist: pytest-cov>=3.0; extra == 'dev'
Requires-Dist: pytest>=7.0; extra == 'dev'
Description-Content-Type: text/markdown

# AI Validator

Python SDK for AI-powered document validation and text extraction.

## Installation
```bash
pip install ai-validator
```

## Quick Start
```python
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)
```python
validator = Validator(
    apiKey="sk_test_...",
    productId="pId"
)
# Uses: http://127.0.0.1:5002
```

### Production
```python
validator = Validator(
    apiKey="sk_prod_...",
    productId="pId",
    environment="production"
)
# Uses: https://api.yourproduction.com
```

### Custom URL
```python
validator = Validator(
    apiKey="sk_test_...",
    productId="pId",
    baseUrl="http://your-custom-domain.com"
)
```