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.2.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.2.0.tar.gz.
File metadata
- Download URL: mosip_auth_sdk-0.2.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 |
69bfc94bf47abc72741040e69cc927a0589e090957db1a0da70e6812fbe838f3
|
|
| MD5 |
f1a2175e839fcefa2319b85d9de3cd0f
|
|
| BLAKE2b-256 |
da0eb21d5bb60f88bc4e71f403e8f34bba883c7291bd8da7569f8779fe282646
|
File details
Details for the file mosip_auth_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mosip_auth_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.5 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 |
aad4b7f6e0672ebe336196d414b7030a7c9f3b6f3ca1ee31dd5da82729968f35
|
|
| MD5 |
e32d699d1c2db62799625893141ccc18
|
|
| BLAKE2b-256 |
818288b0c3e515733dcf5502661f6fbd9cfede2491abbfe3a4c64fb8ecee28de
|