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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for covidactnow-1.1.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 141692310915dc7e1917fe0e1b82d714297c22f954090995b199d2f32b14c0b9 |
|
MD5 | 7b2ae01f00dc6de1b7462ed3802bbfa4 |
|
BLAKE2b-256 | 0d69ff924d6fbd73fed7231219f3af1df0aee28a0de497b524702e08df90df44 |