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
Close
Hashes for cowin_vaccine_api-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f5737c2cf24129d7c9ab976bba3166245fe338dc5c5016bc86ec73fc323c462 |
|
MD5 | 2ebcb7729124d59cb1cf51ac156a75a6 |
|
BLAKE2b-256 | 7e6d122e122d40a43cf9a3767cbaf5bfe1425a266710d0f41a9989ea5ae83405 |