Skip to main content

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:

License

MIT

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

koraidv-1.5.2.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

koraidv-1.5.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file koraidv-1.5.2.tar.gz.

File metadata

  • Download URL: koraidv-1.5.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for koraidv-1.5.2.tar.gz
Algorithm Hash digest
SHA256 5a7ddac95e9679f65b6fbe7ffe51d708bf8def911bf957702195c07e8e5038ee
MD5 9e1b4377e1bffc6c18d93e4539563d01
BLAKE2b-256 b45e53160eddd1dd207c844cc614f363a0a99f2821535bb63ac37b5e8d6f366b

See more details on using hashes here.

File details

Details for the file koraidv-1.5.2-py3-none-any.whl.

File metadata

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

Hashes for koraidv-1.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff123669cfa99d8ed2458d301b68371df49b9bd9c0697b79f1b861aaa1197dcd
MD5 66a0a78213d76941f46be1de2490232d
BLAKE2b-256 7c04e30f943d10d5a70d3e642df5b3e99da921cf7dab603ab6bf3a20295a57cb

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