Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mosip_auth_sdk-0.2.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

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

Hashes for mosip_auth_sdk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5fe2902aa28b8ed97221eca9544c95349f636e245bf3c256c32ce345113c7786
MD5 f3efbed3c96756776746b81f9aec2c0a
BLAKE2b-256 faf80e1979c58c5412be79a982906a47fff169b572a8f0cf875522507b28a822

See more details on using hashes here.

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

Hashes for mosip_auth_sdk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd552e0c44e692e803baff67ad1597b69f655a92b641bd3530373deed6ae714
MD5 6e308d2e9dc824711736d564567ffa2f
BLAKE2b-256 fe16fea13f795c2b7914b3cc1d194f14b8dda8345d90ace82efb0d358629c133

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page