pycorona is a package to get Coronavirus stats of any country
Project description
pycorona
pycovid is a library that is used to get coronavirus condition (i.e. active cases, deaths, etc) of any country.
Usage
from pycorona import Country
country = Country("USA")
cases = country.total_cases()
print(cases)
> 2,234,475
Attributes for countries -
continent()
flag()
total_cases()
today_cases()
total_deaths()
today_deaths()
recovered()
critical_cases()
active_cases()
tests()
The package raises KeyError if the given country is not found
from pycorona import World
world = World()
cases = world.total_cases()
print(cases)
> 8,486,923
Attributes for world -
affected_countries()
total_cases()
today_cases()
total_deaths()
today_deaths()
recovered()
active_cases()
tests()
critical_cases()
Note - This package is currently under development
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
pycorona-0.6.5.tar.gz
(2.2 kB
view hashes)