Simple Python library to work with DCCs (Digital Covid Certificates)
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
CovidPy BETA
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)
- 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
- Update verificaton to use the italian API (https://get.dgc.gov.it/v1/) instead of the old one (https://verifier-api.coronacheck.nl/v4/)
- Support verification rules
- Docs
- Examples
Licensed under GPL v3.0 or later
Useful links
- https://forum.italia.it/t/verifica-green-pass-api/25190/85?page=5
- https://github.com/ministero-salute/dcc-utils/issues/1
- https://ec.europa.eu/health/system/files/2021-04/digital-green-certificates_dt-specifications_en_0.pdf
- https://ec.europa.eu/health/documents/community-register/html/
- https://github.com/ehn-dcc-development/ehn-dcc-schema
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file CovidPyLib-0.1.2.tar.gz.
File metadata
- Download URL: CovidPyLib-0.1.2.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
269382e01048254c0aa23fd4332fca65dac0c164d8b7abd2ba334003cfd9e088
|
|
| MD5 |
eb1216d35e9532cb1919fc1f050eb6d7
|
|
| BLAKE2b-256 |
8071c85b85860cd445d901f93747a3c27ce5b211022f81ce78063e5e329fbd70
|
File details
Details for the file CovidPyLib-0.1.2-py3-none-any.whl.
File metadata
- Download URL: CovidPyLib-0.1.2-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12151db9317341a020f0651392f045b1193baa38fda565ff0045c72b69ddbb35
|
|
| MD5 |
ca2d8a76afb0f19ae09cf4f935f99f89
|
|
| BLAKE2b-256 |
65ad2433db118a69aad29c4ad0c022931b12467528dad5f1bc2d2fb64c57bb53
|