Skip to main content

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


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)

Uploaded Source

Built Distribution

pycorona-0.6.5-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page