Giter Site home page Giter Site logo

dwarf1er / vaxicode-parser Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 11.85 MB

The Vaxicode Parser extracts information from vaccination QR codes using the SHC standard, making it easy for anyone to access their vaccination records

Home Page: http://antoinepoulin.com/vaxicode-parser/

License: GNU General Public License v3.0

Python 100.00%
qrcode jwt json-web-token shc smart-health-card

vaxicode-parser's Introduction

VaxiCode Parser

The VaxiCode Parser is a command-line tool for decoding Smart Health Card (SHC) information from QR codes embedded in PDFs, images, or provided as a string.

Project Description

The Smart Health Card (SHC) is a standard format for securely storing and sharing COVID-19 vaccination and testing information. This tool helps decode the encoded health information contained within SHC QR codes, allowing users to view the decoded data in a human-readable format.

Webpage Version

Alternatively, a webpage version of the VaxiCode Parser is available, providing a user-friendly interface for decoding SHC information. The webpage runs entirely on the client-side, ensuring that no data is stored or sent anywhere. Users can upload PDF files, images, or enter SHC strings directly for decoding. The decoded information is displayed on the webpage for easy access.

You can access the webpage version of the VaxiCode Parser here

NOTE: To use the PDF/image decoding features you need to have canvas reading enabled in your browser for QR codes to be read with JavaScript (privacy.resistFingerprinting must be turned off for Firefox users)

Prerequisites

Before installing and using the VaxiCode Parser, ensure you have the following prerequisites:

  • Python: Ensure you have Python (>=3.6) installed on your system.
  • Poppler: For decoding PDF files, you need to have Poppler installed. Instructions for installing Poppler on different operating systems are provided below.
  • Poetry: Poetry is a dependency manager for Python projects. You'll need Poetry to install and manage the dependencies for this project. Follow the installation instructions below.

Installing Poppler

Linux (Ubuntu/Debian)

sudo apt update && sudo apt upgrade
sudo apt install poppler-utils

MacOS

brew install poppler

Windows

  1. Download the latest version of Poppler from oschwartz10612/poppler-windows
  2. Extract the latest release .zip to C:\Program Files
  3. Add the absolute path to the Poppler bin directory to your system PATH

Installing Poetry

To install Poetry, run the following command:

curl -sSL https://install.python-poetry.org | python3 -

For detailed installation instructions, refer to the Poetry documentation.

Installation

To install the VaxiCode Parser and its dependencies, follow these steps:

  1. Clone the repository:
git clone https://github.com/Dwarf1er/vaxicode-parser.git
  1. Navigate to the project directory:
cd path/to/vaxicode-parser
  1. Install dependencies using Poetry:
poetry install

Usage

After installing the VaxiCode Parser, you can use it to decode SHC information from PDFs, images, or SHC strings using the following command-line interface:

  1. Enter the poetry virtual environment:
poetry shell
  1. Use the command line interface:
python vaxicode-parser.py --pdf <path_to_pdf_file>
python vaxicode-parser.py --image <path_to_image_file>
python vaxicode-parser.py --shc <shc_string>

Replace <path_to_pdf_file>, <path_to_image_file>, and <shc_string> with the appropriate values.

Authors

License

This project is licensed under the GNU General Public License v3.0

Acknowledgments

  • Billie Thompson, this README was based on the template provided here
  • Mikkel Paulson, this project was inspired by the project found here

vaxicode-parser's People

Contributors

dwarf1er avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.