Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desko_identy_chrom_card_reader-0.0.1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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