Skip to main content

A simple python package to get Covid Stats just by using simple commands!

Project description

GetCovidData

You can use this API to access basic Covid Data with simple commands.
This package makes it easy for you to get Covid Data. You can use it in the backend to get covid data and display it on your website or use this data in your python scripts!

Installation

This API can be installed by using pip in the following way:
pip install GetCovidData

Usage:

Here is how to use this package (for more details about syntax and functions you can take a look at the examples.py file)

FunctionParams:What it does!
get_covid_info () display (True/False), default=TrueReturn a JSON object with the latest info of Covid like "Active cases". If diplay=True it will also print the covid info.
get_covid_by_continent ()NoneReturns a pandas dataframe containing the Covid Info in all continents!
get_covid_by_continentJSON()NoneRetuens a JSON object with Covid Situation in all continents
get_covid_all_countries()NoneReturns a pandas DataFrame containing Covid Info in all countries
get_covid_all_countriesJSON()NoneRetuens a JSON object with Covid Info in all countries
get_covid_in_countries()*args countries(countries to get covid data of), json= FalseReturn a pandas dataframe containing covid info in given countries. You can pass as many countries as you want. If json=True it will return a JSON object instead

Example of USE

Covid Api Use case example

Output

Out put of the above code snippet

For more information on how to use this package refer to the eamples.py file! You can alse get details of each function by using this code snippet

Use this code snippet for help

Future Plan

In future we plan to add more functionality to the API giving you access to more data.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

GetCovidData-1.0-py2.py3-none-any.whl (16.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file GetCovidData-1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: GetCovidData-1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for GetCovidData-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 90fb16ce371473e0ab70184954a4cc43b1d124549dcfd370486d894d786352c3
MD5 8c55353a870acbc5be5153d81910019d
BLAKE2b-256 0291576bc352db9909f0330b5f66eeec8533710c1378c6ae173ca8c7d6cb8de2

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