Skip to main content

A wrapper allowing users to get specific state-based COVID statistics from the Covid Act Now database.

Project description

Covid Act Now Database Wrapper

This package is an extremely bare-bones wrapper around Covid Act Now's database of COVID-19 related information.

Usage is simple. Install the package with pip install covidactnow.

import covidactnow

api = covidactnow.User(api_key = 'yourapikey')

washingtonInfectionRate = api.infRate('WA')
massachussettsVaxRate = api.vaxRate('MA')

print(f"{washingtonInfectionRate = }")
print(f"{massachussettsVaxRate = }")

This will result (with different data, of course):

washingtonInfectionRate = 1.16
massachussettsVaxRate = 76.3

An API key can be generated easily here.


For more information on how the wrapper works, read this page. Note that this version has been updated to get data from within a User class allowing individual API keys to be used (as opposed to defining a state as an object and defining statistics as object attributes).

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

covidactnow-1.1.40.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

covidactnow-1.1.40-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file covidactnow-1.1.40.tar.gz.

File metadata

  • Download URL: covidactnow-1.1.40.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for covidactnow-1.1.40.tar.gz
Algorithm Hash digest
SHA256 490226d4905ce6a059a47ede3e2ba84190e6637f43ddc303261ad54090c47fa0
MD5 a76dce9952183a12d8ead6e019d71f05
BLAKE2b-256 f86f6a96144d045633f65db4ab72403fddaad096590cfffb49748433d481a0b6

See more details on using hashes here.

File details

Details for the file covidactnow-1.1.40-py3-none-any.whl.

File metadata

  • Download URL: covidactnow-1.1.40-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for covidactnow-1.1.40-py3-none-any.whl
Algorithm Hash digest
SHA256 174652c94c0586ba33657d6f441a4efa04cd5b5d11dae34782ea2dd8b7324848
MD5 a08cb99d32dddc3ee49d66d23024104e
BLAKE2b-256 47a638d8cc79d1ad9ddb163696194ed4e213ced7e5ca9bc54673ef127ad6fe73

See more details on using hashes here.

Supported by

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