-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (22 loc) · 1.19 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from functions import cowin_fn
# first run the below command to get the list of all states and their id's
cowin_fn.print_all_states()
state_id = '21'
state_name = 'Maharashtra'
# now run the below command with your state_id to get all district and their district_ids
cowin_fn.print_all_district(state_id)
district_id = '395'
district_name = 'Mumbai'
# now run the below commented command with your district_id to get
# all the centers pincode, center_id, and name
cowin_fn.print_all_centers(district_id)
# now select make your preferred list of centers to check
specific_center_ids = [695695, 694629, 614417, 597000]
specific_pin_codes = [400013, 400028, 400016, 400016]
specific_names = ["The World Tower MCGM Parkg",
"KOHINOOR PUB PARKING (DRIVE)", "Mahim Municipal Maternity Home", "P D Hinduja 1"]
print(f"state_id: {state_id}\nstate: {state_name}")
print(f"district_id: {district_id}\ndistrict: {district_name}")
for center_id, pincode, name in zip(specific_center_ids, specific_pin_codes, specific_names):
print(f"center_id: {center_id}; pincode: {pincode}; center_name: {name}")
print("If any of these information is wrong, please update your information in 'setup.py'.\n")