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.1.tar.gz (4.8 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.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pythonbeid-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 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.1.tar.gz
Algorithm Hash digest
SHA256 472071503da6c47289fd06670e46d903dcdb25983c963f84630bdd23c4f833bf
MD5 df822a512b458a9b3601c0f40353b800
BLAKE2b-256 7a1df4e44e959e1e3576b93412b27c1f59bd52ad97271371c3acad5e7868b068

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pythonbeid-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d89533950adc02025fa16323d926081f7bb5ce4b61c2adbc1d6c91723479dc1
MD5 fd1803669c22f6bf17b6b6b41b87681b
BLAKE2b-256 5af7b739f529f897344c201fd656d2fb07d53da5427d830f428ed386928fab24

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