Skip to main content

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

Codacy Badge

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

  1. Decode the content of a DCC and get the raw json
  2. Encode a VALID json and create a recognizable DCC (it will only work with a json containing a valid DCC's info)
  3. 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

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

CovidPyLib-0.1.1.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

CovidPyLib-0.1.1-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file CovidPyLib-0.1.1.tar.gz.

File metadata

  • Download URL: CovidPyLib-0.1.1.tar.gz
  • Upload date:
  • Size: 23.1 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

Hashes for CovidPyLib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b298a05547de835011dbc7e9d8685bc87c7248a1780b9fa122c490df7a4154f7
MD5 8c52ab9ad7c61fc11542c374322bb5ad
BLAKE2b-256 0b82169d0e933cdbf925533d5e63e07f473fc2cb5241487c477ca2314f788abe

See more details on using hashes here.

File details

Details for the file CovidPyLib-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: CovidPyLib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.6 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

Hashes for CovidPyLib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00d05f20ce25910b8552e1a1aa3f5627f92d0e14ba24e118f1fb56e78bb80b05
MD5 c9c8466b61d871bfc4369d5a021a5965
BLAKE2b-256 6f9fff302fb8bb70501fcd4520c5f6407117d0c42237e385ae0f6b7cd05bbf7f

See more details on using hashes here.

Supported by

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