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
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.40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174652c94c0586ba33657d6f441a4efa04cd5b5d11dae34782ea2dd8b7324848 |
|
MD5 | a08cb99d32dddc3ee49d66d23024104e |
|
BLAKE2b-256 | 47a638d8cc79d1ad9ddb163696194ed4e213ced7e5ca9bc54673ef127ad6fe73 |