Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
/ CovidPy Public archive

Simple python library to work with Digital Covid Certificates

License

Notifications You must be signed in to change notification settings

CovidPyLib/CovidPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archived

This project will not receive any support, the pandemy has ended and i don't have time to update it anymore. It should still work. Click here to see what i'm currently working on!

CovidPy BETA 🦠

Codacy Badge

CovidPy is a python library to work with DCCs (Digital Covid Certificates). Using this library you can:

  • Decode the content of a DCC and get the raw json
  • Encode a VALID json and create a recognizable DCC (it will only work with a json containing a valid DCC's info and will still be marked as invalid since it's not signed with a valid european private key)
  • Verify a DCC it will verify the validity of a DCC also checking if it's not revoked

Please remember that this library is in it's early stages and it's not complete, there could be some bugs or missing features, if you find any, please report in an issue if you have any question you can open an issue or ask me on telegram if you know how to improve this library, please send me a pull request, you can find a list of things to do here

Installing

pip install covidpylib

or

pip install git+https://github.com/covidpylib/covidpy

Examples

If you are searching for an example you can try GreenPassValidator, a very simple telegram bot that shows how to use this library

Credits

  • Files used to encode DCCs were generated using this
  • To get Public Keys we use this API
  • To get the revoked DCCs we use this API

TODO

Licensed under GPL v3.0 or later

GPLV3.0LATERLOGO

Useful links