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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
797e6b390fcde34333ac0ea44523deea77ceee29ef564396facae0082311f200
|
|
| MD5 |
b1114b513c268cf0b4aa95e4c93ecf6b
|
|
| BLAKE2b-256 |
1f8086d746a34daa794afc72146005dc920743fbc8c23e51446739c9a0390416
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f75ed8e7b511f603aa3d4599a7c6eca54d9d5e979498fa458fc6826f4f267f38
|
|
| MD5 |
bad113dd44ac495bd62a7aabc4d4ada9
|
|
| BLAKE2b-256 |
16c59889457152a557af92e81895d60a06530f5fbaf3631538be00c83d869eee
|