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 Distribution

GetCovidData-1.1.2.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 2Python 3

File details

Details for the file GetCovidData-1.1.2.tar.gz.

File metadata

  • Download URL: GetCovidData-1.1.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for GetCovidData-1.1.2.tar.gz
Algorithm Hash digest
SHA256 180225fe58d7edad5415b9f40f9379f9f5904423f63629374b2581bd907eb97f
MD5 fe6ce88827573cd1301057229df082a3
BLAKE2b-256 7bbab110c004526396d06f78ece2585e4dd8f6512592d909b60401602d719f39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: GetCovidData-1.1.2-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.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8189a2354d87679fb57eff1346347b0a49e9d7f45b1f77eee28301e994f65df6
MD5 8faaa40c2430fafbfb2d9336b775d824
BLAKE2b-256 938f40b991b726e5ce2f29c290fc6a5aff72e5f85fbce8bee4317bd50611fa09

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