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)
| Function | Params: | What it does! |
|---|---|---|
| get_covid_info () | display (True/False), default=True | Return 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 () | None | Returns a pandas dataframe containing the Covid Info in all continents! |
| get_covid_by_continentJSON() | None | Retuens a JSON object with Covid Situation in all continents |
| get_covid_all_countries() | None | Returns a pandas DataFrame containing Covid Info in all countries |
| get_covid_all_countriesJSON() | None | Retuens a JSON object with Covid Info in all countries |
| get_covid_in_countries() | *args countries(countries to get covid data of), json= False | Return 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
Output
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
Future Plan
In future we plan to add more functionality to the API giving you access to more data.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
180225fe58d7edad5415b9f40f9379f9f5904423f63629374b2581bd907eb97f
|
|
| MD5 |
fe6ce88827573cd1301057229df082a3
|
|
| BLAKE2b-256 |
7bbab110c004526396d06f78ece2585e4dd8f6512592d909b60401602d719f39
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8189a2354d87679fb57eff1346347b0a49e9d7f45b1f77eee28301e994f65df6
|
|
| MD5 |
8faaa40c2430fafbfb2d9336b775d824
|
|
| BLAKE2b-256 |
938f40b991b726e5ce2f29c290fc6a5aff72e5f85fbce8bee4317bd50611fa09
|