mati-python
Mati Python3.6+ client library
Install
pip install mati
Testing
make venv
source venv/bin/activate
make test
Create Verification
from mati import Client
client = Client('api_key', 'secret_key')
verification = client.verifications.create(
'some_flow_id',
company_id='some_id',
)
Upload documents
from mati.types import (
PageType,
UserValidationFile,
ValidationInputType,
ValidationType,
)
# Load documents
front = open('ine_front.jpg', 'rb')
back = open('ine_back.jpg', 'rb')
live = open('liveness.mp4', 'rb')
# Create document with metadata
user_validation_file = UserValidationFile(
filename='ine_front.jpg',
content=front,
input_type=ValidationInputType.document_photo,
validation_type=ValidationType.national_id,
country='MX',
group=0, #The group is important when create your metamap
)
user_validation_file_back = UserValidationFile(
filename='ine_back.jpg',
content=back,
input_type=ValidationInputType.document_photo,
validation_type=ValidationType.national_id,
country='MX',
page=PageType.back,
group=0,
)
user_validation_live = UserValidationFile(
filename='liveness.MOV',
content=live,
input_type=ValidationInputType.selfie_video,
group=1,
)
# Send documentation for validation
resp = client.verifications.upload_validation_data(
[
user_validation_file,
user_validation_file_back,
user_validation_live,
],
verification.identity,
)
Verification status
Retrieve the verification when its complete
verification = client.verifications.retrieve('verification_id')
Metadata
Release files for mati 2.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mati-2.0.9.tar.gz | 13.1 kB | Without provenance | Details for mati-2.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mati-2.0.9-py3-none-any.whl | Python 3 | none | any | Details for mati-2.0.9-py3-none-any.whl |
Total release size: 29.0 kB
Release files / mati-2.0.9.tar.gz
| Download URL | mati-2.0.9.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82e926d8fdbea46dd47e1b70ab0cc98a89222d099ac374057942f5cd5271867e
|
|
BLAKE2b-256 checksum How to use checksums |
d4c8154775d2261d41babf8db49c70cc6fb0e79516222e0af86b2336c3d01161
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Release files / mati-2.0.9-py3-none-any.whl
| Download URL | mati-2.0.9-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c888f5686134b50c2c298fff24ff3c28773d017a4609d1416cb3487096b53297
|
|
BLAKE2b-256 checksum How to use checksums |
151e914a9de9bf41078e684aefedb502b092d49cae645263b0eecd1703d7ea65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Security for mati 2.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.