Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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

Metadata

Release files for CovidPyLib 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CovidPyLib 0.1.4
File Size Uploaded
CovidPyLib-0.1.4.tar.gz 24.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for CovidPyLib 0.1.4
File Interpreter ABI Platform
CovidPyLib-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 50.5 kB

Release files / CovidPyLib-0.1.4.tar.gz

Download URL CovidPyLib-0.1.4.tar.gz
Size 24.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e35b4bf8d24ad2e1aa57ad6d68769892c93ea6e9d0592cea02583ef78a31211c
BLAKE2b-256 checksum
How to use checksums
e7ff08baf15b71688b399d35b8abeec7c10e91081bac7065608281034011fa45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / CovidPyLib-0.1.4-py3-none-any.whl

Download URL CovidPyLib-0.1.4-py3-none-any.whl
Size 25.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22d701ad1b41c8f6f86250f2e601690048519af90428e13ce77b4283ef6dea57
BLAKE2b-256 checksum
How to use checksums
e99e639f45e72b1c213bba4720e3c72d12dd7b1e56ca1aaed7fd853dbd465f09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page