decentro-in-kyc
Project description
decentro-in-kyc-python-sdk
KYC & Onboarding
This Python package is automatically generated by the Konfig:
- API version: 1.0.0
- Package version: 1.0.0
Requirements.
Python >=3.6
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/decentro-in/decentro-in-kyc-sdk/tree/main/python.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/decentro-in/decentro-in-kyc-sdk/tree/main/python.git)
Then import the package:
import decentro_in_kyc_client
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import decentro_in_kyc_client
Getting Started
Please follow the installation procedure and then run the following:
import time
import decentro_in_kyc_client
from pprint import pprint
from decentro_in_kyc_client.api import kyc_api
from decentro_in_kyc_client.model.check_image_quality_response import CheckImageQualityResponse
from decentro_in_kyc_client.model.check_photocopy_response import CheckPhotocopyResponse
from decentro_in_kyc_client.model.check_video_liveness_response import CheckVideoLivenessResponse
from decentro_in_kyc_client.model.classify_document_response import ClassifyDocumentResponse
from decentro_in_kyc_client.model.extract_text_response import ExtractTextResponse
from decentro_in_kyc_client.model.mask_aadhaar_response import MaskAadhaarResponse
from decentro_in_kyc_client.model.match_face_response import MatchFaceResponse
from decentro_in_kyc_client.model.validate_response import ValidateResponse
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: client_id
configuration = decentro_in_kyc_client.Configuration(api_key={'client_id': 'YOUR_API_KEY'})
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: client_secret
configuration.api_key['client_secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_secret'] = 'Bearer'
# Configure API key authorization: module_secret
configuration.api_key['module_secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['module_secret'] = 'Bearer'
# Enter a context with an instance of the API client
with decentro_in_kyc_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = kyc_api.KYCApi(api_client)
reference_id = "ManishGuptaIsTesting3" # str | (optional)
consent = True # bool | (optional)
consent_purpose = "for bank account purpose only" # str | (optional)
image = open('/path/to/file', 'rb') # file_type | (optional)
quality_parameter = "all" # str | (optional)
image_url = "image_url_example" # str | (optional)
try:
# Image Quality Check
api_response = api_instance.check_image_quality(reference_id=reference_id, consent=consent, consent_purpose=consent_purpose, image=image, quality_parameter=quality_parameter, image_url=image_url)
pprint(api_response)
except decentro_in_kyc_client.ApiException as e:
print("Exception when calling KYCApi->check_image_quality: %s\n" % e)
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
- CheckImageQualityResponse
- CheckImageQualityResponseData
- CheckImageQualityResponseDataImageQuality
- CheckImageQualityResponseDataImageQualityQualityScores
- CheckImageQualityResponseDataImageQualityQualityScoresCompressionQuality
- CheckImageQualityResponseDataImageQualityQualityScoresTextQuality
- CheckPhotocopyResponse
- CheckPhotocopyResponseData
- CheckVideoLivenessResponse
- CheckVideoLivenessResponseData
- ClassifyDocumentResponse
- ClassifyDocumentResponseData
- ExtractTextResponse
- ExtractTextResponseOcrResult
- MaskAadhaarResponse
- MaskAadhaarResponseData
- MatchFaceResponse
- MatchFaceResponseData
- ValidateResponse
- ValidateResponseKycResult
Documentation For Authorization
client_id
- Type: API key
- API key parameter name: client_id
- Location: HTTP header
client_secret
- Type: API key
- API key parameter name: client_secret
- Location: HTTP header
module_secret
- Type: API key
- API key parameter name: module_secret
- Location: HTTP header
Author
Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in decentro_in_kyc_client.apis and decentro_in_kyc_client.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from decentro_in_kyc_client.api.default_api import DefaultApifrom decentro_in_kyc_client.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import decentro_in_kyc_client
from decentro_in_kyc_client.apis import *
from decentro_in_kyc_client.models import *
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 decentro-in-kyc-python-sdk-1.0.0.tar.gz.
File metadata
- Download URL: decentro-in-kyc-python-sdk-1.0.0.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83f94f9b6c3d76b79dcafa83ca90575cc7e121f4d9a9458c0bd72e64defe9da8
|
|
| MD5 |
01510cdaec68a0f0693c3f7246649402
|
|
| BLAKE2b-256 |
6436fe551f028c562730886549b3d00285c2d6594c4c0a873cae0739c9b1ab35
|
File details
Details for the file decentro_in_kyc_python_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: decentro_in_kyc_python_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 95.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56e43f5f2b4c3643344f3b0f4b566e37a3845a3622c3379f8320f70149101bcc
|
|
| MD5 |
3a719c64bd6ceb5b7d9bccfcc0e0bb81
|
|
| BLAKE2b-256 |
5376397c67de78617a3d7dac5e3b9f25ccf1be0717112722f22f50ff8d5d1818
|