Package: decentro-in-kyc-python-sdk
decentro-in-kyc-python-sdk@4.4.0KYC & OnboardingRequirementsPython >=3.7Installingpipinstalldecentro-in-kyc-python-sdk==4.4.0Getting Startedfrompprintimportpprintfromdecentro_in_kyc_clientimportDecentro,ApiExceptiondecentro=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_idclient_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_secretclient_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_secretmodule_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 Checkcheck_image_quality_response=decentro.kyc.check_image_quality(reference_id="ABCDEF12345",# requiredconsent=False,# requiredconsent_purpose="For Testing Purpose Only",# requiredimage=open("/path/to/file","rb"),# optionalquality_parameter="all",# optionalimage_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)exceptApiExceptionase:print("Exception when calling KYCApi.check_image_quality:%s\n"%e)pprint(e.body)ife.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 EndpointsAll URIs are relative tohttps://in.staging.decentro.techClassMethodHTTP requestDescriptionKYCApicheck_image_qualitypost/v2/kyc/forensics/image_qualityImage Quality CheckKYCApicheck_photocopypost/v2/kyc/forensics/photocopy_checkPhotocopy CheckKYCApicheck_video_livenesspost/v2/kyc/forensics/video_livenessLiveness CheckKYCApiclassify_documentpost/v2/kyc/document_classificationID ClassificationKYCApiextract_textpost/kyc/scan_extract/ocrScan & ExtractKYCApimask_aadhaar_uidpost/v2/kyc/identities/mask_aadhaar_uidAadhaar MaskingKYCApimatch_facepost/v2/kyc/forensics/face_matchFace MatchKYCApivalidatepost/kyc/public_registry/validateValidateDocumentation For ModelsCheckImageQuality400ResponseCheckImageQualityRequestCheckImageQualityResponseCheckPhotocopy400ResponseCheckPhotocopyRequestCheckPhotocopyResponseCheckVideoLiveness400ResponseCheckVideoLivenessRequestCheckVideoLivenessResponseClassifyDocument400ResponseClassifyDocumentRequestClassifyDocumentResponseExtractText400ResponseExtractTextRequestExtractTextResponseMaskAadhaarRequestMaskAadhaarUid400ResponseMaskAadhaarUidResponseMatchFace400ResponseMatchFaceRequestMatchFaceResponseValidate400ResponseValidateRequestValidateResponse