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
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
covidactnow-1.1.20.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for covidactnow-1.1.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b40f196a43259bc652b93cfa753117a3487a6e57b31b59ed36544ba1f02f21 |
|
MD5 | dcdae18ad067d08dfb7fd460b73ed8d3 |
|
BLAKE2b-256 | f97dad7336b4159ae756247d10424b82c6c4d65194f967a1cb540ece86de4b00 |