Official Python SDK for the Kora IDV identity verification API
Project description
Kora IDV Python SDK
Official Python SDK for the Kora IDV identity verification API. Zero runtime dependencies — built on Python's standard library.
Installation
pip install koraidv
Requires Python 3.10+.
Quick start
from koraidv import KoraIDVClient
client = KoraIDVClient(
api_key="kora_sandbox_xxxxx",
tenant_id="your-tenant-uuid",
)
# Create a verification — the client SDK will use this externalId to launch
# the mobile or web flow on the user's device.
verification = client.create_verification(
external_id="user-42",
tier="standard", # "basic" | "standard" | "enhanced"
)
print(verification.id, verification.status)
# Poll or fetch by ID
fetched = client.get_verification(verification.id)
print(fetched.scores.overall if fetched.scores else None)
Webhooks
Verify the HMAC-SHA256 signature on every event your endpoint receives:
from koraidv import verify_webhook_signature, parse_webhook_payload
def handle_webhook(request):
body = request.body # raw bytes
signature = request.headers["X-Korastratum-Signature"]
if not verify_webhook_signature(body, signature, secret="whsec_xxx"):
return 401
event = parse_webhook_payload(body)
if event.event_type == "verification.completed":
process_verification(event.data)
return 200
Documentation
Full API reference and integration guides at docs.korastratum.com/idv.
Other Kora IDV SDKs:
@koraidv/node— Node.js / TypeScriptkoraidv-go— Go server SDK@koraidv/react-native— React Native client@koraidv/core,@koraidv/react— Web client
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file koraidv-1.5.1.tar.gz.
File metadata
- Download URL: koraidv-1.5.1.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ea88d31bc0b2ce81a2efb05b290d3d57bba0a4df4c511fc3ad4fd5b5abe93a1
|
|
| MD5 |
5b2b54a4f0b84fc1dd6dcd244cde7dda
|
|
| BLAKE2b-256 |
6354989bc6dad33a60e24a13fd9f55e71468dec33aff92048aba31c9a5b4893e
|
File details
Details for the file koraidv-1.5.1-py3-none-any.whl.
File metadata
- Download URL: koraidv-1.5.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49d6fc37504b31f17035b4b22788232169f1b77d36a46a4b9e769c1e232f9ae2
|
|
| MD5 |
bee6349ddd35628a7c2e8f778e00e7a0
|
|
| BLAKE2b-256 |
3559c6c4f3211e02417d313abf285bf8697faebce6717c140a74b4feae73a2f8
|