Skip to main content

Scriptable green pass verifier

Project description

Green Pass Verifier

A verified green pass

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

Settings screen

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

JSON schema and specifications

A very detailed blog post on how decode the pass

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

greenpass-2.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

greenpass-2.1-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file greenpass-2.1.tar.gz.

File metadata

  • Download URL: greenpass-2.1.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for greenpass-2.1.tar.gz
Algorithm Hash digest
SHA256 75b5649066408ac4951c7d059ac36720e4b8bc41428ce9ba0b3ef40d538b462c
MD5 47c5f45b2e34629d6a63b4e1d88d75eb
BLAKE2b-256 ae808b3a1b4de721198111f9c3b12bf4350642eea55db7ad6cf342654a3d626c

See more details on using hashes here.

File details

Details for the file greenpass-2.1-py3-none-any.whl.

File metadata

  • Download URL: greenpass-2.1-py3-none-any.whl
  • Upload date:
  • Size: 21.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for greenpass-2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a2278cab924c12068533b258e7c1aba7e4d3c13d3804ca0284395a1457718de
MD5 b4e018d4194dd1604276c5e94814849d
BLAKE2b-256 08d1fc13140dac02f074046ac906ffc17e9d66001976317b2198b4f62609efc0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page