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. View the PyPi project here, and the original post page here.

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

Instantiate a user object with your API key as an argument. You can easily generate an API key here.

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

For more information on how the wrapper works, particularly how it was redesigned to be package-friendly, read the "Updated for Distribution" section of 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.61.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

covidactnow-1.1.61-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: covidactnow-1.1.61.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using 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.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for covidactnow-1.1.61.tar.gz
Algorithm Hash digest
SHA256 168d922b5b76a2b804f4edb6e6e26496f4c2fbc8b616d8a6684c899c004be99b
MD5 353369cf0200d7816382dcabb34c9935
BLAKE2b-256 95959ba9c0e70c66d7a87f982018a61e7dfe368b1f417f62c9ca71cc1911b2aa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: covidactnow-1.1.61-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using 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.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

File hashes

Hashes for covidactnow-1.1.61-py3-none-any.whl
Algorithm Hash digest
SHA256 6ea2d362f6c043b0bb50f675b5f6bb75bb4c8420bd163b0c288178ff3ac43c30
MD5 2b332148eb70f6cbf2467a57133fa94c
BLAKE2b-256 943aae1d7ad1f6a6763a965246422043d33bf1fa7bba1ad23c7fd5bd7d874deb

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