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 details)
Built Distribution
File details
Details for the file covidactnow-1.1.20.tar.gz
.
File metadata
- Download URL: covidactnow-1.1.20.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae6d543e1eaf433651d1fbe5c3fcac96847d338a781e356a848fed26b2f360cc |
|
MD5 | dc400d724e2c345617402c3f0221b95a |
|
BLAKE2b-256 | 4f51e455f8ca92cc2303795b2d80acaf09a00e124f3202b6c8ca95ecd0cd4852 |
File details
Details for the file covidactnow-1.1.20-py3-none-any.whl
.
File metadata
- Download URL: covidactnow-1.1.20-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98b40f196a43259bc652b93cfa753117a3487a6e57b31b59ed36544ba1f02f21 |
|
MD5 | dcdae18ad067d08dfb7fd460b73ed8d3 |
|
BLAKE2b-256 | f97dad7336b4159ae756247d10424b82c6c4d65194f967a1cb540ece86de4b00 |