Python driver for DESKO IDenty chrom
Project description
id_card_reader
Python driver for DESKO IDenty chrom
link https://www.desko.com/site/assets/files/2782/desko_identy-chrom.pdf
Script was develop for REST API to help load customer data
Script extract user data from passport or ID
USAGE
In your virtual environment install external libraries
pip install -r requirement.txt
run script
python example.py
Or in your code import idcardreader.py
from idcardreader import get_user_data
customer_data, error_code = get_user_data()
If reader get error (you move quick with ID or data are not readable, ...) script return error_code different than 0
error_code == 1 its parsing error, when regex canot parse data
error_code == 2 its card reader sys error (like reader is not connected, reading error,...)
In success customer_data will be filled with a dictionary in format:
-
PASSPORT
{ "issuing_country": ....,
"last_name": ....,
"first_name": ....,
"document_id": ....,
"date_birth": ....,
"sex": ....,
"date_expiration": ....,
"country": ....,
"personal_id": ....,
} -
ID
{ "issuing_country": ....,
"document_id": ....,
"personal_id": ....,
"date_birth": ....,
"sex": ....,
"date_expiration": ....,
"country": ....,
"last_name": ....,
"first_name": ....,
}
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
Built Distribution
File details
Details for the file desko_identy_chrom_card_reader-0.0.1.tar.gz
.
File metadata
- Download URL: desko_identy_chrom_card_reader-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 003fdb836c82ff73a21014e57e86b4db4c15702a85c2984f3df29c4f4416d769 |
|
MD5 | bd85cf8c366150e3a08daa1a90b7859d |
|
BLAKE2b-256 | ffd3523268820033295429f11e036bf69010ce361d1aa0d2bf6f59ac9eac9472 |
File details
Details for the file desko_identy_chrom_card_reader-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: desko_identy_chrom_card_reader-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a6cffa9f5862cd429fd1c4ebfe7e4cf9dacdaf1d1ec8889b3266f6b5875c16f |
|
MD5 | 7a506d25b0725ddfcb7120d4e66e127f |
|
BLAKE2b-256 | 764ff8f40ac86d0631688296739a97da449b04fce8c1b45b93122dd552c9cc69 |