Skip to main content

Un module pour lire les informations des cartes d'identité belges

Project description

PythonBEID

PythonBEID est un module Python pour lire les informations essentielles des cartes d'identité belge à l'aide d'un lecteur de cartes et de la bibliothèque pyscard.

Installation

Vous pouvez installer ce module via pip :

pip install pythonbeid

Utilisation

Voici un exemple simple d'utilisation du module pythonbeid pour lire les informations d'une carte :

from pythonbeid.card_reader import CardReader
from pprint import pprint

def main():
    try:
        cr = CardReader()
        informations = cr.read_informations(photo=False)
        pprint(informations)
    except RuntimeError as e:
        print(f"Erreur: {e}")

if __name__ == "__main__":
    main()

Dépendances

Ce module nécessite la bibliothèque suivante :

  • pyscard

Vous pouvez installer les dépendances avec pip :

pip install -r requirements.txt

Tests

Les tests unitaires sont situés dans le répertoire tests. Vous pouvez exécuter les tests avec unittest :

python -m unittest discover -s tests

Contribuer

Les contributions et améliorations sont les bienvenues !

Licence

Ce projet est sous licence MIT. Voir le fichier LICENSE pour plus de détails.

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

pythonbeid-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

pythonbeid-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pythonbeid-0.1.0.tar.gz.

File metadata

  • Download URL: pythonbeid-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for pythonbeid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 797e6b390fcde34333ac0ea44523deea77ceee29ef564396facae0082311f200
MD5 b1114b513c268cf0b4aa95e4c93ecf6b
BLAKE2b-256 1f8086d746a34daa794afc72146005dc920743fbc8c23e51446739c9a0390416

See more details on using hashes here.

File details

Details for the file pythonbeid-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pythonbeid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.1

File hashes

Hashes for pythonbeid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f75ed8e7b511f603aa3d4599a7c6eca54d9d5e979498fa458fc6826f4f267f38
MD5 bad113dd44ac495bd62a7aabc4d4ada9
BLAKE2b-256 16c59889457152a557af92e81895d60a06530f5fbaf3631538be00c83d869eee

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