pUZI python
Proficient UZI pass reader in python, based on work by Anne Jan: https://github.com/minvws/pUZI-php
The UZI card is part of an authentication mechanism for medical staff and doctors working in the Netherlands. The cards are distributed by the CIBG. More information and the relevant client software can be found at www.uziregister.nl (in Dutch).
pUZI is a simple and functional module which allows you to use the UZI cards as authentication mechanism. It consists of:
- a reader that reads the data on the card and gives an UziUser object in return (this repository).
pUZI is available under the EU PL licence. It was created early 2021 during the COVID19 campaign as part of the vaccination registration project BRBA for the ‘Ministerie van Volksgezondheid, Welzijn & Sport, programma Realisatie Digitale Ondersteuning.’
Questions and contributions are welcome via GitHub.
See www.Uziregister.nl for the documentation, software and application form for the UZI card.
Requirements
- python >= 3.6
Apache config (or NginX equivalent):
SSLEngine on
SSLProtocol -all +TLSv1.3
SSLHonorCipherOrder on
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
SSLVerifyClient require
SSLVerifyDepth 3
SSLCACertificateFile /path/to/uziCA.crt
SSLOptions +StdEnvVars +ExportCertData
Installation
pip install pUzi
Usage
from uzireader.uzipassuser import UziPassUser
uzipas = UziPassUser(env['SSL_CLIENT_VERIFY'], env['SSL_CLIENT_CERT'])
print(uzipas)
{"givenName": "john", "surName": "doe-11111111", "OidCa": "2.16.528.1.1003.1.3.5.5.2", "UziVersion": "1", "UziNumber": "11111111", "CardType": "N", "SubscriberNumber": "90000111", "Role": "01.015", "AgbCode": "00000000"}
Uses
Contributing
-
Fork the Project
-
Ensure you have the requirements and Black installed
pip3 install -r requirements.txt pip3 install black
-
Create a Feature Branch
-
Run tests
cd tests/certs ./generate_mock_certs.sh cd - python3 -m unittest
-
(Recommended) Check whether your code conforms to our Coding Standards by running black on your changed files
black . -
Send us a Pull Request
Metadata
Release files for pUzi 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pUzi-1.2.tar.gz | 6.6 kB | Without provenance | Details for pUzi-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pUzi-1.2-py3-none-any.whl | Python 3 | none | any | Details for pUzi-1.2-py3-none-any.whl |
Total release size: 348.2 kB
Release files / pUzi-1.2.tar.gz
| Download URL | pUzi-1.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e76b93a03e4da8aa7865d5a323007996451199d6ec9e176de5e3f9efdfd18e24
|
|
BLAKE2b-256 checksum How to use checksums |
6122ebae82b6da0ae66dd32a5bb2c7e1576e7118db08ade0c2d53fe56af4fb3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.7.0 requests/2.25.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.6.9
|
Release files / pUzi-1.2-py3-none-any.whl
| Download URL | pUzi-1.2-py3-none-any.whl |
|---|---|
| Size | 341.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
462a5397a2290a6baae6ef8fdf42d8a8d6e9bbfe3ca0f5f272c548d44981dad1
|
|
BLAKE2b-256 checksum How to use checksums |
b7a2f49e7ec5e689410f3f3d8d14e4f9bcdd425aa954ab6e9a6246b9871ab314
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.7.0 requests/2.25.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.56.0 CPython/3.6.9
|
Security for pUzi 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.