Simplified SDK for MOSIP Authentication
Project description
Mosip Authentication SDK
Usage
from mosip_auth_sdk import MOSIPAuthenticator
from mosip_auth_sdk.models import DemographicsModel, BiometricModel
authenticator = MOSIPAuthenticator(config={
# Your configuration settings go here.
# Refer to authenticator-config.toml for the required values.
})
# Refer the DemographicsModel, BiometricModel documentation to know
# the exact arguments to be passed in there
demographics_data = DemographicsModel()
biometrics = [BiometricModel(), BiometricModel()]
# Make a KYC request
response = authenticator.kyc(
vid='<some_vid>',
demographic_data=demographics_data,
otp_value='323', # Optional
biometrics=biometrics, # Optional
)
# handle response
Prerequisites for building
- Python 3 (tested on 3.10.7), lower versions may or may not work.
- Poetry (recommended, optional)
install
python3 -m pip install poetry
Dependencies for building
python3 -m poetry install
If you don't want to use poetry you can install the requirements directly using pip
python3 -m pip install -r requirements.txt
Build
```sh
python3 -m poetry build
```
Publish
python3 -m poetry publish
Testing
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
mosip_auth_sdk-0.1.0.tar.gz
(8.3 kB
view details)
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 mosip_auth_sdk-0.1.0.tar.gz.
File metadata
- Download URL: mosip_auth_sdk-0.1.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.7 Linux/5.10.0-33-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e9727578f2575be83ec23a13cbc71715b2086a101fedf347cc4ad1d554438f1
|
|
| MD5 |
8a247f225c9d006cd181c812b7f2114a
|
|
| BLAKE2b-256 |
18c72538a30930e7a11242552c30cf2407770b27da46cd7112807f962cd1f7bc
|
File details
Details for the file mosip_auth_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mosip_auth_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.7 Linux/5.10.0-33-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35d27b1f7066d2adbf9fc0012e273f34e8bc2e5b91bac8fcc89a9345ed7a3aed
|
|
| MD5 |
f21ef7a9bcb71dc20550d860861a278b
|
|
| BLAKE2b-256 |
1432b8e5932dfa638f9161c9fa4052841733dd46ddb7ea9b8eb688440689fd6a
|