Skip to main content

KYC & Onboarding

Project description

decentro-in-kyc-python-sdk@4.4.0

KYC & Onboarding

Requirements

Python >=3.7

Installing

pip install decentro-in-kyc-python-sdk==4.4.0

Getting Started

from pprint import pprint
from decentro_in_kyc_client import Decentro, ApiException

decentro = Decentro(
    # Defining the host is optional and defaults to https://in.staging.decentro.tech
    # See configuration.py for a list of all supported configuration parameters.
    host="https://in.staging.decentro.tech",
    # Configure API key authorization: client_id
    client_id="YOUR_API_KEY",
    # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    # api_key_prefix = {'client_id': 'Bearer'},
    # Configure API key authorization: client_secret
    client_secret="YOUR_API_KEY",
    # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    # api_key_prefix = {'client_secret': 'Bearer'},
    # Configure API key authorization: module_secret
    module_secret="YOUR_API_KEY",
    # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
    # api_key_prefix = {'module_secret': 'Bearer'},
)

try:
    # Image Quality Check
    check_image_quality_response = decentro.kyc.check_image_quality(
        reference_id="ABCDEF12345",  # required
        consent=False,  # required
        consent_purpose="For Testing Purpose Only",  # required
        image=open("/path/to/file", "rb"),  # optional
        quality_parameter="all",  # optional
        image_url="string_example",  # optional
    )
    pprint(check_image_quality_response.body)
    pprint(check_image_quality_response.body["decentroTxnId"])
    pprint(check_image_quality_response.body["status"])
    pprint(check_image_quality_response.body["responseCode"])
    pprint(check_image_quality_response.body["message"])
    pprint(check_image_quality_response.body["data"])
    pprint(check_image_quality_response.headers)
    pprint(check_image_quality_response.status)
    pprint(check_image_quality_response.round_trip_time)
except ApiException as e:
    print("Exception when calling KYCApi.check_image_quality: %s\n" % e)
    pprint(e.body)
    if e.status == 400:
        pprint(e.body["decentroTxnId"])
        pprint(e.body["status"])
        pprint(e.body["responseCode"])
        pprint(e.body["message"])
    pprint(e.headers)
    pprint(e.status)
    pprint(e.reason)
    pprint(e.round_trip_time)

Documentation for API Endpoints

All URIs are relative to https://in.staging.decentro.tech

Class Method HTTP request Description
KYCApi check_image_quality post /v2/kyc/forensics/image_quality Image Quality Check
KYCApi check_photocopy post /v2/kyc/forensics/photocopy_check Photocopy Check
KYCApi check_video_liveness post /v2/kyc/forensics/video_liveness Liveness Check
KYCApi classify_document post /v2/kyc/document_classification ID Classification
KYCApi extract_text post /kyc/scan_extract/ocr Scan & Extract
KYCApi mask_aadhaar_uid post /v2/kyc/identities/mask_aadhaar_uid Aadhaar Masking
KYCApi match_face post /v2/kyc/forensics/face_match Face Match
KYCApi validate post /kyc/public_registry/validate Validate

Documentation For Models

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

decentro_in_kyc_python_sdk-4.4.0.tar.gz (113.2 kB view details)

Uploaded Source

Built Distribution

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

decentro_in_kyc_python_sdk-4.4.0-py3-none-any.whl (225.9 kB view details)

Uploaded Python 3

File details

Details for the file decentro_in_kyc_python_sdk-4.4.0.tar.gz.

File metadata

File hashes

Hashes for decentro_in_kyc_python_sdk-4.4.0.tar.gz
Algorithm Hash digest
SHA256 cff2900f403aca169ae8d82918149d28364a8d8f8f0b1ba9af92da39938a0aff
MD5 6ebe98b5041b752660bb2839cc514e4f
BLAKE2b-256 d50ee4b573bd6dc02ca568f70d6e1f945664582b9dcb5e9ab536afa52e54d506

See more details on using hashes here.

File details

Details for the file decentro_in_kyc_python_sdk-4.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for decentro_in_kyc_python_sdk-4.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 095894325b825984066f2c9c7b89a51472ed03cd3e092f383eb69d01f27c008e
MD5 c23f82309cb2f05b169bc0ae3df4cb16
BLAKE2b-256 6c697af744afdc97d56a8bb09cfab6de044df80e7bfe5d8b650fd8458684546d

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