Skip to main content

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pycorona-0.6.5.tar.gz.

File metadata

  • Download URL: pycorona-0.6.5.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pycorona-0.6.5.tar.gz
Algorithm Hash digest
SHA256 00db1dc79befe0a98f737af38b2867aa8dbfc100f564a821f605b6b04ac469e5
MD5 2631ec2cf876d1df10108f95cb873ace
BLAKE2b-256 48c357d5ed38549c04f0f841a7894b2bc064a16579954077513382c35d8c3eeb

See more details on using hashes here.

File details

Details for the file pycorona-0.6.5-py3-none-any.whl.

File metadata

  • Download URL: pycorona-0.6.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pycorona-0.6.5-py3-none-any.whl
Algorithm Hash digest
SHA256 91cc9d083523f8f6f0c5811a69218c1fe93ed0cfb1d41891ade9e083fb4eeb32
MD5 4c4bfe97e944f8711b93cef7a087183e
BLAKE2b-256 e0fd2570f96e38a713298356cf91ece1983dba08f8f522f0d4a4a5782f64e42c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.6.5 This release

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6

2 files

0.5.9

2 files

0.5.8.1

2 files

0.5.7

2 files

0.5.6

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5

2 files

0.4.3

2 files

0.4

2 files

0.3.5

2 files

0.3

2 files

0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page