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.2.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.2.tar.gz.
File metadata
- Download URL: mosip_auth_sdk-0.2.2.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 |
5fe2902aa28b8ed97221eca9544c95349f636e245bf3c256c32ce345113c7786
|
|
| MD5 |
f3efbed3c96756776746b81f9aec2c0a
|
|
| BLAKE2b-256 |
faf80e1979c58c5412be79a982906a47fff169b572a8f0cf875522507b28a822
|
File details
Details for the file mosip_auth_sdk-0.2.2-py3-none-any.whl.
File metadata
- Download URL: mosip_auth_sdk-0.2.2-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 |
9bd552e0c44e692e803baff67ad1597b69f655a92b641bd3530373deed6ae714
|
|
| MD5 |
6e308d2e9dc824711736d564567ffa2f
|
|
| BLAKE2b-256 |
fe16fea13f795c2b7914b3cc1d194f14b8dda8345d90ace82efb0d358629c133
|