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 GitHub repository 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.50.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: covidactnow-1.1.50.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 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.50.tar.gz
Algorithm Hash digest
SHA256 add263fdc3e93ce983f5c243d78a3768addf1d4a331b13e96243474ac9e9025a
MD5 424f6399737a4868b6b78788e37ec698
BLAKE2b-256 bb741525f21c3a4cb09a3aa3deb52b845ef0889f8ee4c9e3afeb9e18c5bf42bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: covidactnow-1.1.50-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 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.50-py3-none-any.whl
Algorithm Hash digest
SHA256 9296ec1e0dd469ef31219ad616fcb289d51af9cf8da0c8e35fea3a59ff16b3cb
MD5 bfd48adaf47706a19c7aeca61a7f63c3
BLAKE2b-256 0231ab07f379e6ad84cfccc142ddd4596826679df9f0e5b51693de37d0b6c2e7

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