Skip to main content

Detailed Regular Information about World's Covid19 Data

Project description

covidpy

Detailed Regular Information about World's Covid19 Data

forthebadge made-with-python

PyPI download total PyPI version shields.io

Build Status

Features

  • Get Worlds Covid19 Status
  • Get All Country's Covid19 Status
  • Get Individual Countriy's Covid19 Status

Requirements

python >= 3.6

Installation

Install the dependencies and devDependencies and start the server.

pip install covidpy

Dependencies

pandas
requests
beautifulsoup4

Functions

Instructions on how to use them in your own application are linked below.

Functions Work
WorldData() Get Worldwide Data
ListCountries() Get Total Country List
CountryData(country) Get Individual Country's Data
AllData() Get All Country's Data

Usage

Get Worldwide Data

from covidpy import WorldData

world = WorldData()
print(world)

Result:

{
    'Total_Cases': 161080616, 
    'New_Cases': 3853,
    'Total_Deaths': 3345018,
    'New_Deaths': 274,
    'Total_Recovered': 139849282,
    'New_Recovered': 2483,
    'Active_Cases': 17886316,
    'Serious_Cases': 105218
}

Get Country List

from covidpy import ListCountries

countries = ListCountries()
print(countries)

Result:

     Country_ID      Country_Name
1             1     NORTH AMERICA
2             2              ASIA
3             3     SOUTH AMERICA
4             4            EUROPE
5             5            AFRICA
..          ...               ...
225         226  MARSHALL ISLANDS
226         227             SAMOA
227         228      SAINT HELENA
228         229        MICRONESIA
229         230             CHINA

Get All Countries Data

from covidpy import AllData

all_data = AllData()
print(all_data)

Result:

[
    {
        'Country_Name': 'USA', 
        'Total_Cases': 33586136, 
        'New_Cases': 0, 
        'Total_Deaths': 597785, 
        'New_Deaths': 0, 
        'Total_Recovered': 26620229, 
        'New_Recovered': 0, 
        'Active_Cases': 6368122, 
        'Serious_Cases': 8707, 
        'Total_Tests': 461476543
    },
    {
        'Country_Name': 'INDIA', 
        'Total_Cases': 23702832, 
        'New_Cases': 0, 
        'Total_Deaths': 258351, 
        'New_Deaths': 0, 
        'Total_Recovered': 19728436, 
        'New_Recovered': 0, 
        'Active_Cases': 3716045, 
        'Serious_Cases': 8944, 
        'Total_Tests': 307583991
    },
    ...
]

Get Individual Country Data

from covidpy import CountryData

country = CountryData("Bangladesh")
print(country)

Result:

{
    'Country_Name': 'BANGLADESH', 
    'Total_Cases': 777397, 
    'New_Cases': 0, 
    'Total_Deaths': 12045, 
    'New_Deaths': 0, 
    'Total_Recovered': 718249, 
    'New_Recovered': 0, 
    'Active_Cases': 47103, 
    'Serious_Cases': 1120, 
    'Total_Tests': 5677222
}

License

MIT

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

covidpy-0.1.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distributions

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

covidpy-0.1.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

covidpy-0.1.4-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file covidpy-0.1.4.tar.gz.

File metadata

  • Download URL: covidpy-0.1.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for covidpy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cbd86c4142e8d81bedde9872bd1d81a38a274e3efa2b5f6579b4fa4743f7dc3a
MD5 95bd2c58e2a026c16caae0d12c851163
BLAKE2b-256 1c7296c814437b55f2f91e20f844b33c8dffcd388dc45af7fbbbda59d9da9bdc

See more details on using hashes here.

File details

Details for the file covidpy-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: covidpy-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for covidpy-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b33bbe3e4377f92aecb1bd1db52639df6dc6a545f156ee497405b8c17f86e519
MD5 cb2e18b672e44a590df145cf3e316f38
BLAKE2b-256 ad4e404bcc4cd024a34794129be5d6ae87f9bb8701d043bf80e289af3cc1ec5c

See more details on using hashes here.

File details

Details for the file covidpy-0.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: covidpy-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for covidpy-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2483a24fcd231bdea2b4f969754ae56347d803b8015215093eb47a540a99dfc8
MD5 8d33c6da9382d065915895bf8408c166
BLAKE2b-256 3e131fc8faad520bf9d512aeb86547385ca40b5a31c9964bc3e67c5d1a2e8de1

See more details on using hashes here.

Supported by

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