validpay 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- validpay/__init__.py +15 -0
- validpay/client.py +95 -0
- validpay-0.1.0.dist-info/METADATA +76 -0
- validpay-0.1.0.dist-info/RECORD +6 -0
- validpay-0.1.0.dist-info/WHEEL +4 -0
- validpay-0.1.0.dist-info/licenses/LICENSE +21 -0
validpay/__init__.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
ValidPay Python SDK — AI-powered document verification.
|
|
3
|
+
|
|
4
|
+
Usage:
|
|
5
|
+
from validpay import ValidPayClient
|
|
6
|
+
|
|
7
|
+
client = ValidPayClient(api_key="your-api-key")
|
|
8
|
+
result = client.verify_document(image_path="check.png")
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
__version__ = "0.1.0"
|
|
12
|
+
|
|
13
|
+
from .client import ValidPayClient
|
|
14
|
+
|
|
15
|
+
__all__ = ["ValidPayClient", "__version__"]
|
validpay/client.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"""ValidPay API client."""
|
|
2
|
+
|
|
3
|
+
import requests
|
|
4
|
+
from typing import Optional, Dict, Any
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ValidPayClient:
|
|
8
|
+
"""
|
|
9
|
+
Official ValidPay Python client for document verification.
|
|
10
|
+
|
|
11
|
+
This SDK is currently in private beta. Contact mike@validpay.io
|
|
12
|
+
for API access.
|
|
13
|
+
|
|
14
|
+
Usage:
|
|
15
|
+
from validpay import ValidPayClient
|
|
16
|
+
|
|
17
|
+
client = ValidPayClient(api_key="your-api-key")
|
|
18
|
+
result = client.verify_document(image_path="check.png")
|
|
19
|
+
print(result.status) # "authentic" or "unverified"
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
BASE_URL = "https://api.validpay.io/v1"
|
|
23
|
+
|
|
24
|
+
def __init__(self, api_key: str, base_url: Optional[str] = None):
|
|
25
|
+
"""
|
|
26
|
+
Initialize the ValidPay client.
|
|
27
|
+
|
|
28
|
+
Args:
|
|
29
|
+
api_key: Your ValidPay API key (contact mike@validpay.io for access)
|
|
30
|
+
base_url: Optional custom API base URL
|
|
31
|
+
"""
|
|
32
|
+
self.api_key = api_key
|
|
33
|
+
self.base_url = base_url or self.BASE_URL
|
|
34
|
+
self._session = requests.Session()
|
|
35
|
+
self._session.headers.update({
|
|
36
|
+
"Authorization": f"Bearer {api_key}",
|
|
37
|
+
"User-Agent": "validpay-python/0.1.0",
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
def verify_document(
|
|
41
|
+
self,
|
|
42
|
+
image_path: Optional[str] = None,
|
|
43
|
+
qr_data: Optional[str] = None,
|
|
44
|
+
) -> Dict[str, Any]:
|
|
45
|
+
"""
|
|
46
|
+
Verify a document using ValidPay's AI-powered verification.
|
|
47
|
+
|
|
48
|
+
Args:
|
|
49
|
+
image_path: Path to document image (PNG, JPG, or PDF)
|
|
50
|
+
qr_data: Raw QR code data string (alternative to image)
|
|
51
|
+
|
|
52
|
+
Returns:
|
|
53
|
+
Dictionary with verification result including status,
|
|
54
|
+
document_type, confidence, and extracted fields.
|
|
55
|
+
|
|
56
|
+
Raises:
|
|
57
|
+
NotImplementedError: SDK is in private beta.
|
|
58
|
+
"""
|
|
59
|
+
raise NotImplementedError(
|
|
60
|
+
"ValidPay Python SDK is in private beta. "
|
|
61
|
+
"Contact mike@validpay.io for API access."
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
def decode_qr(self, qr_data: str) -> Dict[str, Any]:
|
|
65
|
+
"""
|
|
66
|
+
Decode and verify a ValidPay QR code.
|
|
67
|
+
|
|
68
|
+
Args:
|
|
69
|
+
qr_data: The raw string data from a scanned QR code
|
|
70
|
+
|
|
71
|
+
Returns:
|
|
72
|
+
Dictionary with decoded document fields and verification status.
|
|
73
|
+
|
|
74
|
+
Raises:
|
|
75
|
+
NotImplementedError: SDK is in private beta.
|
|
76
|
+
"""
|
|
77
|
+
raise NotImplementedError(
|
|
78
|
+
"ValidPay Python SDK is in private beta. "
|
|
79
|
+
"Contact mike@validpay.io for API access."
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
def get_status(self) -> Dict[str, Any]:
|
|
83
|
+
"""
|
|
84
|
+
Check API connectivity and account status.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
Dictionary with API status and account info.
|
|
88
|
+
|
|
89
|
+
Raises:
|
|
90
|
+
NotImplementedError: SDK is in private beta.
|
|
91
|
+
"""
|
|
92
|
+
raise NotImplementedError(
|
|
93
|
+
"ValidPay Python SDK is in private beta. "
|
|
94
|
+
"Contact mike@validpay.io for API access."
|
|
95
|
+
)
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: validpay
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Python SDK for ValidPay — AI-powered document verification platform
|
|
5
|
+
Project-URL: Homepage, https://validpay.io
|
|
6
|
+
Project-URL: Documentation, https://validpay.io/docs
|
|
7
|
+
Project-URL: Repository, https://github.com/ValidPay-io/validpay-python-sdk
|
|
8
|
+
Project-URL: Issues, https://github.com/ValidPay-io/validpay-python-sdk/issues
|
|
9
|
+
Author-email: MiLu Technologies LLC <mike@validpay.io>
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: check-verification,document-verification,fintech,qr-code,validpay
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Topic :: Office/Business :: Financial
|
|
23
|
+
Classifier: Topic :: Security
|
|
24
|
+
Requires-Python: >=3.8
|
|
25
|
+
Requires-Dist: requests>=2.25.0
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# ValidPay Python SDK
|
|
29
|
+
|
|
30
|
+
Official Python SDK for [ValidPay](https://validpay.io) — AI-powered document verification platform.
|
|
31
|
+
|
|
32
|
+
> **Private Beta** — This SDK is currently in private beta. Contact mike@validpay.io for API access.
|
|
33
|
+
|
|
34
|
+
## Installation
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install validpay
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Quick Start
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from validpay import ValidPayClient
|
|
44
|
+
|
|
45
|
+
client = ValidPayClient(api_key="your-api-key")
|
|
46
|
+
|
|
47
|
+
# Verify a document image
|
|
48
|
+
result = client.verify_document(image_path="check.png")
|
|
49
|
+
print(result["status"]) # "authentic" or "unverified"
|
|
50
|
+
|
|
51
|
+
# Decode a ValidPay QR code
|
|
52
|
+
decoded = client.decode_qr(qr_data="validpay://...")
|
|
53
|
+
print(decoded["document_type"])
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Features
|
|
57
|
+
|
|
58
|
+
- Document verification via image upload
|
|
59
|
+
- QR code decoding and validation
|
|
60
|
+
- Check authenticity verification
|
|
61
|
+
- Patent-pending AI-powered analysis
|
|
62
|
+
|
|
63
|
+
## Requirements
|
|
64
|
+
|
|
65
|
+
- Python 3.8+
|
|
66
|
+
- Active ValidPay API key
|
|
67
|
+
|
|
68
|
+
## Links
|
|
69
|
+
|
|
70
|
+
- Website: https://validpay.io
|
|
71
|
+
- Documentation: https://validpay.io/docs
|
|
72
|
+
- Support: mike@validpay.io
|
|
73
|
+
|
|
74
|
+
## License
|
|
75
|
+
|
|
76
|
+
MIT — Copyright (c) 2026 MiLu Technologies LLC
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
validpay/__init__.py,sha256=JOj40PJhEK96bmH29_Zf3fEupUOD4TEiAEL7iFET85E,331
|
|
2
|
+
validpay/client.py,sha256=CIfNxrs9WSslbDYlf9Svula6ODSUM28cpeVKq3MZSTg,2830
|
|
3
|
+
validpay-0.1.0.dist-info/METADATA,sha256=_fWAT_tcPlDZZu8kO5elqmDG6YO9avzOg1Mq5F3-AQg,2225
|
|
4
|
+
validpay-0.1.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
5
|
+
validpay-0.1.0.dist-info/licenses/LICENSE,sha256=TOYfYqhwMtETjM-lm1do3BMePkrbhRhC1U29yP6kZIs,1078
|
|
6
|
+
validpay-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MiLu Technologies LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|