Indian COVID-19 Vaccine and Cases Status Information
Project description
india_covid
Indian COVID-19 Vaccine and Cases Status Coronavirus disease (COVID-19) is an infectious disease caused by a newly discovered coronavirus. Most people who fall sick with COVID-19 will experience mild to moderate symptoms and recover without special treatment.
import package
Python 3.6.9 (default, Jan 26 2021, 15:33:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pycovid_india
>>> inCovid = pycovid_india.CovidInfo()
>>>
>>>
Get State id
- this
id
state code. return value dict format.
>>>
>>> inCovid.get_state_id
output:
{
"0": "Andaman and Nicobar",
"1": "Andhra Pradesh",
"2": "Arunachal Pradesh",
"3": "Assam",
"4": "Bihar",
"5": "Chandigarh",
"6": "Chhattisgarh",
"7": "Dadra and Nagar Haveli and Daman and Diu",
"8": "Delhi",
"9": "Goa",
"10": "Gujarat",
"11": "Haryana",
"12": "Himachal Pradesh",
"13": "Jammu and Kashmir",
"14": "Jharkhand",
"15": "Karnataka",
"16": "Kerala",
"17": "Ladakh",
"18": "Lakshadweep",
"19": "Maharashtra",
"20": "Manipur",
"21": "Meghalaya",
"22": "Mizoram",
"23": "Madhya Pradesh",
"24": "Nagaland",
"25": "Odisha",
"26": "Puducherry",
"27": "Punjab",
"28": "Rajasthan",
"29": "Sikkim",
"30": "Tamil Nadu",
"31": "Telengana",
"32": "Tripura",
"33": "Uttar Pradesh",
"34": "Uttarakhand",
"35": "West Bengal"
}
india covid vaccine last update infomation
>>>
>>> inCovid.get_covid_vaccine_last_update()
output:
{
"day": "2021-05-29",
"india_dose1": 167617477,
"india_dose2": 44449137,
"india_total_doses": 212066614,
"india_last_dose1": 164779253,
"india_last_dose2": 44123192,
"india_last_total_doses": 208902445
}
get state covid cases infomation and covid acivity
input id is state code 16
>>> inCovid.get_state_covid_info(16)
output:
{
"Name of State / UT": "Kerala",
"state_code": "32",
"abbreviation_code": "KL",
"state_helpline": "0471-2552056",
"covid_portal_url": "http://dhs.kerala.gov.in/public-health-2019-n-corona-virus/",
"covid_facilities": "http://arogyakeralam.gov.in/2020/03/25/guidelines/",
"state_donation_url": "https://donation.cmdrf.kerala.gov.in/",
"Total Confirmed cases": "2494385",
"Active": "233425",
"Cured/Discharged/Migrated": "2252505",
"Death": "8455",
"whatsapp_chatbot_url": "https://wa.me/919072220183?text=Hi",
"fb_chatbot_url": "",
"epass_url": "https://covid19jagratha.kerala.nic.in/home/addDomestic",
"last_confirmed_covid_cases": "2470872",
"last_cured_discharged": "2224405",
"last_death": "8257",
"last_active_covid_cases": "238210",
"diff_confirmed_covid_cases": "23513",
"diff_cured_discharged": "28100",
"diff_death": "198",
"diff_active_covid_cases": "-4785"
}
get state covid vaccine activity
this id state code 30
>>> inCovid.get_state_covid_vaccine_info(30)
output
{
"st_name": "Tamil Nadu",
"state_id": "31",
"covid_state_name": "Tamil Nadu",
"covid_state_id": "33",
"dose1": "6782968",
"dose2": "2013165",
"total_doses": "8796133",
"last_dose1": "6523932",
"last_dose2": "1995551",
"last_total_doses": "8519483"
}
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
pycovid_india-0.0.7.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file pycovid_india-0.0.7.tar.gz
.
File metadata
- Download URL: pycovid_india-0.0.7.tar.gz
- Upload date:
- Size: 5.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.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0146742b2d7a797d1e4a73389e7af853c51782ffa1fba19032ff4460a17eb028 |
|
MD5 | ddc6da7e043a1fd1b18f7a71d435baa9 |
|
BLAKE2b-256 | a68f00fd9dd426a4377aa5d677fcf212f4abbdb916993fdf6d20d310b063c402 |
File details
Details for the file pycovid_india-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: pycovid_india-0.0.7-py3-none-any.whl
- Upload date:
- Size: 7.9 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.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1de59ec5b11b0108578817ec9b4d146b31f021a42221828e145e34ca5e2931a |
|
MD5 | 35863fc9f1d60de5b5774b394ddf4aed |
|
BLAKE2b-256 | f2dfc37ae254ac8942ac2c23c424f8f99ffa911ace510e177b3e8213db428f5e |