Green Pass Verifier
Scriptable green pass verifier. With this application you can automatize accesses based on green pass validity.
Installation
You need to have pip and libzbar to install the application.
You can install it using your favorite package manager, for instance in Ubuntu:
$ sudo apt install python3-pip libzbar0
You can just install the application using pip:
$ pip install greenpass
If you want to install it from sources, install the python3 requirements using the following command:
$ pip3 install -r requirements.txt
Usage
You can feed the application with different file formats, for instance:
Green pass official PDFs
$ greenpass --pdf greenpass.pdf
QRCode images in PNG
$ greenpass --qr greenpass.png
Txt files with the content of the qrcode
$ greenpass --txt greenpass.txt
Standard input and pipes
$ zbarimg --raw greenpass.png | greenpass --txt -
On a side note, you can verify camera-acquired images if your scanner prints the raw content of the QRcode on stdout
$ zbarcam --raw -q1 | greenpass --txt -
The application returns an UNIX compatible code, therefore you can concatenate commands that will be executed only if the green pass is verified.
$ greenpass --qr greenpass.png && echo "green pass ok"
You can also get the expiration configuration using --settings without
other inputs.
$ greenpass --settings
Pointers
If you want more information on the green pass certification and how to parse or verify it you can refer to the following resources:
Greenpass Encoding documentation
Official Italian Android application
Metadata
Release files for greenpass 2.1
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 |
|---|---|---|---|---|
| greenpass-2.1.tar.gz | 11.0 kB | Without provenance | Details for greenpass-2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| greenpass-2.1-py3-none-any.whl | Python 3 | none | any | Details for greenpass-2.1-py3-none-any.whl |
Total release size: 32.8 kB
Release files / greenpass-2.1.tar.gz
| Download URL | greenpass-2.1.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75b5649066408ac4951c7d059ac36720e4b8bc41428ce9ba0b3ef40d538b462c
|
|
BLAKE2b-256 checksum How to use checksums |
ae808b3a1b4de721198111f9c3b12bf4350642eea55db7ad6cf342654a3d626c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5
|
Release files / greenpass-2.1-py3-none-any.whl
| Download URL | greenpass-2.1-py3-none-any.whl |
|---|---|
| Size | 21.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a2278cab924c12068533b258e7c1aba7e4d3c13d3804ca0284395a1457718de
|
|
BLAKE2b-256 checksum How to use checksums |
08d1fc13140dac02f074046ac906ffc17e9d66001976317b2198b4f62609efc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5
|
Security for greenpass 2.1
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.