API wrapper for Cowin Api
Project description
Cowin Vaccine Tracker
Python API wrapper for CoWin, for the vaccination drive by booking an appointment at the nearby vaccination centres
This wrapper supports Find vaccine availability by Pincode, District and booking of apointments is on the way.
Vacine Notifier a Telegram Bot which can be used to check vaccine availability status and recieve notification when registered for vaccine availability.
Installation
pip install cowin-vaccine-api
Usage
Get States
from cowin import CoWinAPI
cowin = CoWinAPI()
states = cowin.get_states()
print(states)
Get Districts
from cowin import CoWinAPI
state_id=31
cowin = CoWinAPI()
districts = cowin.get_districts(state_id)
print(districts)
Availability By Pin for a day
from cowin import CoWinAPI
pin_code = "642122"
cowin = CoWinAPI()
#pass date in method to get specific date or today's date is taken
available_centers = cowin.get_availability_by_pincode(pin_code)
print(available_centers)
Availability By DistrictID for a day
from cowin import CoWinAPI
pin_code = "642122"
cowin = CoWinAPI()
#pass date in method to get specific date or today's date is taken
available_centers = cowin.get_availability_by_district(pin_code)
print(available_centers)
Availability By Pincode for a week
from cowin import CoWinAPI
pin_code = "642122"
cowin = CoWinAPI()
#pass date in method to get specific date or today's date is taken
available_centers = cowin.get_availability_by_pincode(pin_code)
print(available_centers)
Availability By DistrictID for a week
from cowin import CoWinAPI
pin_code = "642122"
cowin = CoWinAPI()
#pass date in method to get specific date or today's date is taken
available_centers = cowin.get_availability_by_pincode(pin_code)
print(available_centers)
License
© 2021 Kishore
This repository is licensed under the MIT license. See LICENSE for details.
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 cowin-vaccine-api-0.0.3.tar.gz.
File metadata
- Download URL: cowin-vaccine-api-0.0.3.tar.gz
- Upload date:
- Size: 3.1 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.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e469341a37b209ae81dd453e73b5f45585e8f2344b202252b7e9670baa16c8fe
|
|
| MD5 |
7576779e0ddea72ccfedc77b21a03f99
|
|
| BLAKE2b-256 |
9ea94cf39fe4f8c1132fb227167a763f542651c6dee89e0ab0fb5aa337622eee
|
File details
Details for the file cowin_vaccine_api-0.0.3-py3-none-any.whl.
File metadata
- Download URL: cowin_vaccine_api-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.7 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.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f5737c2cf24129d7c9ab976bba3166245fe338dc5c5016bc86ec73fc323c462
|
|
| MD5 |
2ebcb7729124d59cb1cf51ac156a75a6
|
|
| BLAKE2b-256 |
7e6d122e122d40a43cf9a3767cbaf5bfe1425a266710d0f41a9989ea5ae83405
|