Skip to main content

A wrapper allowing users to get specific state-based COVID information 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.

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.20.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

covidactnow-1.1.20-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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