Metadata-Version: 2.1
Name: mosip-auth-sdk
Version: 0.2.2
Summary: Simplified SDK for MOSIP Authentication
License: Mozilla Public License Version 2.0
Author: Abdul Bathish
Requires-Python: >=3.10,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: cryptography (>=43.0.3,<44.0.0)
Requires-Dist: jwcrypto (>=1.5.6,<2.0.0)
Requires-Dist: pydantic (>=2.9.2,<3.0.0)
Requires-Dist: requests (>=2.32.3,<3.0.0)
Description-Content-Type: text/markdown

# Mosip Authentication SDK

# Usage
```python
    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
  ```sh
  python3 -m pip install poetry
  ```
  
# Dependencies for building
  ```sh
    python3 -m poetry install
  ```
  If you don't want to use poetry you can install the requirements directly using pip
  ```sh
  python3 -m pip install -r requirements.txt
  ```
# Build
    ```sh
    python3 -m poetry build
    ```

# Publish
```sh
    python3 -m poetry publish
```

# Testing

