pythonbeid 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/LICENSE +21 -21
- {pythonbeid-0.2.0/pythonbeid.egg-info → pythonbeid-0.3.0}/PKG-INFO +104 -104
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/README.md +81 -81
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pyproject.toml +29 -29
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pythonbeid/__init__.py +2 -1
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pythonbeid/card_reader.py +258 -256
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pythonbeid/exceptions.py +27 -30
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pythonbeid/parser.py +80 -89
- {pythonbeid-0.2.0 → pythonbeid-0.3.0/pythonbeid.egg-info}/PKG-INFO +104 -104
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/setup.cfg +4 -4
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/tests/test_card_reader.py +258 -238
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/tests/test_parser.py +103 -103
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pythonbeid.egg-info/SOURCES.txt +0 -0
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pythonbeid.egg-info/dependency_links.txt +0 -0
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pythonbeid.egg-info/requires.txt +0 -0
- {pythonbeid-0.2.0 → pythonbeid-0.3.0}/pythonbeid.egg-info/top_level.txt +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Fabien Toune
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Fabien Toune
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pythonbeid
|
|
3
|
-
Version: 0.
|
|
4
|
-
Summary: Un module pour lire les informations des cartes d'identité belges
|
|
5
|
-
Author-email: Fabien Toune <fabien.toune@gmail.com>
|
|
6
|
-
License-Expression: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/Lapin-Blanc/pythonbeid
|
|
8
|
-
Project-URL: Bug Tracker, https://github.com/Lapin-Blanc/pythonbeid/issues
|
|
9
|
-
Classifier: Programming Language :: Python :: 3
|
|
10
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
-
Classifier: Topic :: Security
|
|
12
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
13
|
-
Requires-Python: >=3.9
|
|
14
|
-
Description-Content-Type: text/markdown
|
|
15
|
-
License-File: LICENSE
|
|
16
|
-
Requires-Dist: pyscard
|
|
17
|
-
Provides-Extra: dev
|
|
18
|
-
Requires-Dist: pytest; extra == "dev"
|
|
19
|
-
Requires-Dist: pytest-cov; extra == "dev"
|
|
20
|
-
Requires-Dist: build; extra == "dev"
|
|
21
|
-
Requires-Dist: twine; extra == "dev"
|
|
22
|
-
Dynamic: license-file
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
# PythonBEID
|
|
26
|
-
|
|
27
|
-
PythonBEID est un module Python pour lire les informations essentielles des cartes d'identité belge à l'aide d'un lecteur de cartes PC/SC et de la bibliothèque `pyscard`.
|
|
28
|
-
|
|
29
|
-
## Installation
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
pip install pythonbeid
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Utilisation
|
|
36
|
-
|
|
37
|
-
```python
|
|
38
|
-
from pythonbeid import CardReader, NoReaderError, NoCardError
|
|
39
|
-
|
|
40
|
-
try:
|
|
41
|
-
with CardReader() as cr: # context manager — ferme proprement la connexion
|
|
42
|
-
info = cr.read_informations(photo=False)
|
|
43
|
-
print(info["last_name"]) # Smith
|
|
44
|
-
print(info["birth_date"]) # datetime(1990, 1, 1)
|
|
45
|
-
except NoReaderError:
|
|
46
|
-
print("Aucun lecteur de carte détecté.")
|
|
47
|
-
except NoCardError:
|
|
48
|
-
print("Aucune carte dans le lecteur.")
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Si plusieurs lecteurs sont connectés, précisez l'index :
|
|
52
|
-
|
|
53
|
-
```python
|
|
54
|
-
with CardReader(reader_index=1) as cr:
|
|
55
|
-
info = cr.read_informations()
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Champs retournés par `read_informations()`
|
|
59
|
-
|
|
60
|
-
| Clé | Type | Description |
|
|
61
|
-
|---|---|---|
|
|
62
|
-
| `card_number` | str | Numéro de la carte |
|
|
63
|
-
| `validity_start` | datetime | Date début de validité |
|
|
64
|
-
| `validity_end` | datetime | Date fin de validité |
|
|
65
|
-
| `issuing_municipality` | str | Commune de délivrance |
|
|
66
|
-
| `national_number` | str | Numéro national |
|
|
67
|
-
| `last_name` | str | Nom de famille |
|
|
68
|
-
| `first_names` | str | Prénom(s) |
|
|
69
|
-
| `suffix` | str | Suffixe de nom |
|
|
70
|
-
| `nationality` | str | Nationalité |
|
|
71
|
-
| `birth_place` | str | Lieu de naissance |
|
|
72
|
-
| `birth_date` | datetime | Date de naissance |
|
|
73
|
-
| `sex` | str | Sexe |
|
|
74
|
-
| `address` | str | Adresse |
|
|
75
|
-
| `postal_code` | str | Code postal |
|
|
76
|
-
| `city` | str | Localité |
|
|
77
|
-
| `photo` | str | Photo en base64 (si `photo=True`) |
|
|
78
|
-
|
|
79
|
-
### Activer les logs
|
|
80
|
-
|
|
81
|
-
```python
|
|
82
|
-
import logging
|
|
83
|
-
logging.basicConfig(level=logging.DEBUG)
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Dépendances
|
|
87
|
-
|
|
88
|
-
- `pyscard`
|
|
89
|
-
|
|
90
|
-
## Tests
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
pip install -e ".[dev]"
|
|
94
|
-
pytest # tous les tests (matériel skippé si absent)
|
|
95
|
-
pytest tests/test_parser.py # tests sans matériel uniquement
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Contribuer
|
|
99
|
-
|
|
100
|
-
Les contributions et améliorations sont les bienvenues !
|
|
101
|
-
|
|
102
|
-
## Licence
|
|
103
|
-
|
|
104
|
-
Ce projet est sous licence MIT. Voir le fichier `LICENSE` pour plus de détails.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pythonbeid
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Un module pour lire les informations des cartes d'identité belges
|
|
5
|
+
Author-email: Fabien Toune <fabien.toune@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Lapin-Blanc/pythonbeid
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/Lapin-Blanc/pythonbeid/issues
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Topic :: Security
|
|
12
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: pyscard
|
|
17
|
+
Provides-Extra: dev
|
|
18
|
+
Requires-Dist: pytest; extra == "dev"
|
|
19
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
20
|
+
Requires-Dist: build; extra == "dev"
|
|
21
|
+
Requires-Dist: twine; extra == "dev"
|
|
22
|
+
Dynamic: license-file
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# PythonBEID
|
|
26
|
+
|
|
27
|
+
PythonBEID est un module Python pour lire les informations essentielles des cartes d'identité belge à l'aide d'un lecteur de cartes PC/SC et de la bibliothèque `pyscard`.
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pip install pythonbeid
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Utilisation
|
|
36
|
+
|
|
37
|
+
```python
|
|
38
|
+
from pythonbeid import CardReader, NoReaderError, NoCardError
|
|
39
|
+
|
|
40
|
+
try:
|
|
41
|
+
with CardReader() as cr: # context manager — ferme proprement la connexion
|
|
42
|
+
info = cr.read_informations(photo=False)
|
|
43
|
+
print(info["last_name"]) # Smith
|
|
44
|
+
print(info["birth_date"]) # datetime(1990, 1, 1)
|
|
45
|
+
except NoReaderError:
|
|
46
|
+
print("Aucun lecteur de carte détecté.")
|
|
47
|
+
except NoCardError:
|
|
48
|
+
print("Aucune carte dans le lecteur.")
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Si plusieurs lecteurs sont connectés, précisez l'index :
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
with CardReader(reader_index=1) as cr:
|
|
55
|
+
info = cr.read_informations()
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Champs retournés par `read_informations()`
|
|
59
|
+
|
|
60
|
+
| Clé | Type | Description |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| `card_number` | str | Numéro de la carte |
|
|
63
|
+
| `validity_start` | datetime | Date début de validité |
|
|
64
|
+
| `validity_end` | datetime | Date fin de validité |
|
|
65
|
+
| `issuing_municipality` | str | Commune de délivrance |
|
|
66
|
+
| `national_number` | str | Numéro national |
|
|
67
|
+
| `last_name` | str | Nom de famille |
|
|
68
|
+
| `first_names` | str | Prénom(s) |
|
|
69
|
+
| `suffix` | str | Suffixe de nom |
|
|
70
|
+
| `nationality` | str | Nationalité |
|
|
71
|
+
| `birth_place` | str | Lieu de naissance |
|
|
72
|
+
| `birth_date` | datetime | Date de naissance |
|
|
73
|
+
| `sex` | str | Sexe |
|
|
74
|
+
| `address` | str | Adresse |
|
|
75
|
+
| `postal_code` | str | Code postal |
|
|
76
|
+
| `city` | str | Localité |
|
|
77
|
+
| `photo` | str | Photo en base64 (si `photo=True`) |
|
|
78
|
+
|
|
79
|
+
### Activer les logs
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
import logging
|
|
83
|
+
logging.basicConfig(level=logging.DEBUG)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Dépendances
|
|
87
|
+
|
|
88
|
+
- `pyscard`
|
|
89
|
+
|
|
90
|
+
## Tests
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
pip install -e ".[dev]"
|
|
94
|
+
pytest # tous les tests (matériel skippé si absent)
|
|
95
|
+
pytest tests/test_parser.py # tests sans matériel uniquement
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Contribuer
|
|
99
|
+
|
|
100
|
+
Les contributions et améliorations sont les bienvenues !
|
|
101
|
+
|
|
102
|
+
## Licence
|
|
103
|
+
|
|
104
|
+
Ce projet est sous licence MIT. Voir le fichier `LICENSE` pour plus de détails.
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
# PythonBEID
|
|
3
|
-
|
|
4
|
-
PythonBEID est un module Python pour lire les informations essentielles des cartes d'identité belge à l'aide d'un lecteur de cartes PC/SC et de la bibliothèque `pyscard`.
|
|
5
|
-
|
|
6
|
-
## Installation
|
|
7
|
-
|
|
8
|
-
```bash
|
|
9
|
-
pip install pythonbeid
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Utilisation
|
|
13
|
-
|
|
14
|
-
```python
|
|
15
|
-
from pythonbeid import CardReader, NoReaderError, NoCardError
|
|
16
|
-
|
|
17
|
-
try:
|
|
18
|
-
with CardReader() as cr: # context manager — ferme proprement la connexion
|
|
19
|
-
info = cr.read_informations(photo=False)
|
|
20
|
-
print(info["last_name"]) # Smith
|
|
21
|
-
print(info["birth_date"]) # datetime(1990, 1, 1)
|
|
22
|
-
except NoReaderError:
|
|
23
|
-
print("Aucun lecteur de carte détecté.")
|
|
24
|
-
except NoCardError:
|
|
25
|
-
print("Aucune carte dans le lecteur.")
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Si plusieurs lecteurs sont connectés, précisez l'index :
|
|
29
|
-
|
|
30
|
-
```python
|
|
31
|
-
with CardReader(reader_index=1) as cr:
|
|
32
|
-
info = cr.read_informations()
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Champs retournés par `read_informations()`
|
|
36
|
-
|
|
37
|
-
| Clé | Type | Description |
|
|
38
|
-
|---|---|---|
|
|
39
|
-
| `card_number` | str | Numéro de la carte |
|
|
40
|
-
| `validity_start` | datetime | Date début de validité |
|
|
41
|
-
| `validity_end` | datetime | Date fin de validité |
|
|
42
|
-
| `issuing_municipality` | str | Commune de délivrance |
|
|
43
|
-
| `national_number` | str | Numéro national |
|
|
44
|
-
| `last_name` | str | Nom de famille |
|
|
45
|
-
| `first_names` | str | Prénom(s) |
|
|
46
|
-
| `suffix` | str | Suffixe de nom |
|
|
47
|
-
| `nationality` | str | Nationalité |
|
|
48
|
-
| `birth_place` | str | Lieu de naissance |
|
|
49
|
-
| `birth_date` | datetime | Date de naissance |
|
|
50
|
-
| `sex` | str | Sexe |
|
|
51
|
-
| `address` | str | Adresse |
|
|
52
|
-
| `postal_code` | str | Code postal |
|
|
53
|
-
| `city` | str | Localité |
|
|
54
|
-
| `photo` | str | Photo en base64 (si `photo=True`) |
|
|
55
|
-
|
|
56
|
-
### Activer les logs
|
|
57
|
-
|
|
58
|
-
```python
|
|
59
|
-
import logging
|
|
60
|
-
logging.basicConfig(level=logging.DEBUG)
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Dépendances
|
|
64
|
-
|
|
65
|
-
- `pyscard`
|
|
66
|
-
|
|
67
|
-
## Tests
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
pip install -e ".[dev]"
|
|
71
|
-
pytest # tous les tests (matériel skippé si absent)
|
|
72
|
-
pytest tests/test_parser.py # tests sans matériel uniquement
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Contribuer
|
|
76
|
-
|
|
77
|
-
Les contributions et améliorations sont les bienvenues !
|
|
78
|
-
|
|
79
|
-
## Licence
|
|
80
|
-
|
|
81
|
-
Ce projet est sous licence MIT. Voir le fichier `LICENSE` pour plus de détails.
|
|
1
|
+
|
|
2
|
+
# PythonBEID
|
|
3
|
+
|
|
4
|
+
PythonBEID est un module Python pour lire les informations essentielles des cartes d'identité belge à l'aide d'un lecteur de cartes PC/SC et de la bibliothèque `pyscard`.
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pip install pythonbeid
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Utilisation
|
|
13
|
+
|
|
14
|
+
```python
|
|
15
|
+
from pythonbeid import CardReader, NoReaderError, NoCardError
|
|
16
|
+
|
|
17
|
+
try:
|
|
18
|
+
with CardReader() as cr: # context manager — ferme proprement la connexion
|
|
19
|
+
info = cr.read_informations(photo=False)
|
|
20
|
+
print(info["last_name"]) # Smith
|
|
21
|
+
print(info["birth_date"]) # datetime(1990, 1, 1)
|
|
22
|
+
except NoReaderError:
|
|
23
|
+
print("Aucun lecteur de carte détecté.")
|
|
24
|
+
except NoCardError:
|
|
25
|
+
print("Aucune carte dans le lecteur.")
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Si plusieurs lecteurs sont connectés, précisez l'index :
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
with CardReader(reader_index=1) as cr:
|
|
32
|
+
info = cr.read_informations()
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Champs retournés par `read_informations()`
|
|
36
|
+
|
|
37
|
+
| Clé | Type | Description |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `card_number` | str | Numéro de la carte |
|
|
40
|
+
| `validity_start` | datetime | Date début de validité |
|
|
41
|
+
| `validity_end` | datetime | Date fin de validité |
|
|
42
|
+
| `issuing_municipality` | str | Commune de délivrance |
|
|
43
|
+
| `national_number` | str | Numéro national |
|
|
44
|
+
| `last_name` | str | Nom de famille |
|
|
45
|
+
| `first_names` | str | Prénom(s) |
|
|
46
|
+
| `suffix` | str | Suffixe de nom |
|
|
47
|
+
| `nationality` | str | Nationalité |
|
|
48
|
+
| `birth_place` | str | Lieu de naissance |
|
|
49
|
+
| `birth_date` | datetime | Date de naissance |
|
|
50
|
+
| `sex` | str | Sexe |
|
|
51
|
+
| `address` | str | Adresse |
|
|
52
|
+
| `postal_code` | str | Code postal |
|
|
53
|
+
| `city` | str | Localité |
|
|
54
|
+
| `photo` | str | Photo en base64 (si `photo=True`) |
|
|
55
|
+
|
|
56
|
+
### Activer les logs
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
import logging
|
|
60
|
+
logging.basicConfig(level=logging.DEBUG)
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Dépendances
|
|
64
|
+
|
|
65
|
+
- `pyscard`
|
|
66
|
+
|
|
67
|
+
## Tests
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
pip install -e ".[dev]"
|
|
71
|
+
pytest # tous les tests (matériel skippé si absent)
|
|
72
|
+
pytest tests/test_parser.py # tests sans matériel uniquement
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Contribuer
|
|
76
|
+
|
|
77
|
+
Les contributions et améliorations sont les bienvenues !
|
|
78
|
+
|
|
79
|
+
## Licence
|
|
80
|
+
|
|
81
|
+
Ce projet est sous licence MIT. Voir le fichier `LICENSE` pour plus de détails.
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["setuptools>=68", "wheel"]
|
|
3
|
-
build-backend = "setuptools.build_meta"
|
|
4
|
-
|
|
5
|
-
[project]
|
|
6
|
-
name = "pythonbeid"
|
|
7
|
-
version = "0.
|
|
8
|
-
description = "Un module pour lire les informations des cartes d'identité belges"
|
|
9
|
-
readme = "README.md"
|
|
10
|
-
license = "MIT"
|
|
11
|
-
authors = [{ name = "Fabien Toune", email = "fabien.toune@gmail.com" }]
|
|
12
|
-
requires-python = ">=3.9"
|
|
13
|
-
dependencies = ["pyscard"]
|
|
14
|
-
classifiers = [
|
|
15
|
-
"Programming Language :: Python :: 3",
|
|
16
|
-
"Operating System :: OS Independent",
|
|
17
|
-
"Topic :: Security",
|
|
18
|
-
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
[project.urls]
|
|
22
|
-
Homepage = "https://github.com/Lapin-Blanc/pythonbeid"
|
|
23
|
-
"Bug Tracker" = "https://github.com/Lapin-Blanc/pythonbeid/issues"
|
|
24
|
-
|
|
25
|
-
[project.optional-dependencies]
|
|
26
|
-
dev = ["pytest", "pytest-cov", "build", "twine"]
|
|
27
|
-
|
|
28
|
-
[tool.pytest.ini_options]
|
|
29
|
-
testpaths = ["tests"]
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pythonbeid"
|
|
7
|
+
version = "0.3.0"
|
|
8
|
+
description = "Un module pour lire les informations des cartes d'identité belges"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
authors = [{ name = "Fabien Toune", email = "fabien.toune@gmail.com" }]
|
|
12
|
+
requires-python = ">=3.9"
|
|
13
|
+
dependencies = ["pyscard"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
"Topic :: Security",
|
|
18
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[project.urls]
|
|
22
|
+
Homepage = "https://github.com/Lapin-Blanc/pythonbeid"
|
|
23
|
+
"Bug Tracker" = "https://github.com/Lapin-Blanc/pythonbeid/issues"
|
|
24
|
+
|
|
25
|
+
[project.optional-dependencies]
|
|
26
|
+
dev = ["pytest", "pytest-cov", "build", "twine"]
|
|
27
|
+
|
|
28
|
+
[tool.pytest.ini_options]
|
|
29
|
+
testpaths = ["tests"]
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"""pythonbeid — read information from Belgian eID cards."""
|
|
2
2
|
|
|
3
|
-
from .card_reader import CardReader
|
|
3
|
+
from .card_reader import CardReader, list_readers
|
|
4
4
|
from .exceptions import APDUError, CardCommunicationError, NoCardError, NoReaderError
|
|
5
5
|
|
|
6
6
|
__all__ = [
|
|
7
7
|
"CardReader",
|
|
8
|
+
"list_readers",
|
|
8
9
|
"NoReaderError",
|
|
9
10
|
"NoCardError",
|
|
10
11
|
"CardCommunicationError",
|