2019-01-22 12:52:20 +00:00
|
|
|
from __future__ import unicode_literals
|
2019-12-10 10:25:05 +00:00
|
|
|
from six import iteritems
|
2019-01-22 12:52:20 +00:00
|
|
|
|
2017-06-21 11:52:38 +00:00
|
|
|
states = [
|
|
|
|
'',
|
2017-07-12 08:10:11 +00:00
|
|
|
'Andaman and Nicobar Islands',
|
2017-06-21 11:52:38 +00:00
|
|
|
'Andhra Pradesh',
|
|
|
|
'Arunachal Pradesh',
|
|
|
|
'Assam',
|
|
|
|
'Bihar',
|
|
|
|
'Chandigarh',
|
2017-07-12 10:15:32 +00:00
|
|
|
'Chhattisgarh',
|
2020-08-12 13:49:03 +00:00
|
|
|
'Dadra and Nagar Haveli and Daman and Diu',
|
2017-06-21 11:52:38 +00:00
|
|
|
'Delhi',
|
|
|
|
'Goa',
|
|
|
|
'Gujarat',
|
|
|
|
'Haryana',
|
|
|
|
'Himachal Pradesh',
|
|
|
|
'Jammu and Kashmir',
|
|
|
|
'Jharkhand',
|
|
|
|
'Karnataka',
|
|
|
|
'Kerala',
|
2021-02-15 08:46:00 +00:00
|
|
|
'Ladakh',
|
2017-06-21 11:52:38 +00:00
|
|
|
'Lakshadweep Islands',
|
|
|
|
'Madhya Pradesh',
|
|
|
|
'Maharashtra',
|
|
|
|
'Manipur',
|
|
|
|
'Meghalaya',
|
|
|
|
'Mizoram',
|
|
|
|
'Nagaland',
|
|
|
|
'Odisha',
|
2017-07-12 10:31:24 +00:00
|
|
|
'Other Territory',
|
2017-06-21 11:52:38 +00:00
|
|
|
'Pondicherry',
|
|
|
|
'Punjab',
|
|
|
|
'Rajasthan',
|
|
|
|
'Sikkim',
|
|
|
|
'Tamil Nadu',
|
|
|
|
'Telangana',
|
|
|
|
'Tripura',
|
|
|
|
'Uttar Pradesh',
|
|
|
|
'Uttarakhand',
|
|
|
|
'West Bengal',
|
|
|
|
]
|
|
|
|
|
|
|
|
state_numbers = {
|
2017-07-12 08:10:11 +00:00
|
|
|
"Andaman and Nicobar Islands": "35",
|
2017-06-21 11:52:38 +00:00
|
|
|
"Andhra Pradesh": "37",
|
|
|
|
"Arunachal Pradesh": "12",
|
|
|
|
"Assam": "18",
|
|
|
|
"Bihar": "10",
|
|
|
|
"Chandigarh": "04",
|
2017-07-12 10:15:32 +00:00
|
|
|
"Chhattisgarh": "22",
|
2020-08-12 13:49:03 +00:00
|
|
|
"Dadra and Nagar Haveli and Daman and Diu": "26",
|
2017-06-21 11:52:38 +00:00
|
|
|
"Delhi": "07",
|
|
|
|
"Goa": "30",
|
|
|
|
"Gujarat": "24",
|
|
|
|
"Haryana": "06",
|
|
|
|
"Himachal Pradesh": "02",
|
|
|
|
"Jammu and Kashmir": "01",
|
|
|
|
"Jharkhand": "20",
|
|
|
|
"Karnataka": "29",
|
|
|
|
"Kerala": "32",
|
2021-02-15 08:46:00 +00:00
|
|
|
"Ladakh": "38",
|
2017-06-21 11:52:38 +00:00
|
|
|
"Lakshadweep Islands": "31",
|
|
|
|
"Madhya Pradesh": "23",
|
|
|
|
"Maharashtra": "27",
|
|
|
|
"Manipur": "14",
|
|
|
|
"Meghalaya": "17",
|
|
|
|
"Mizoram": "15",
|
|
|
|
"Nagaland": "13",
|
|
|
|
"Odisha": "21",
|
2017-07-12 10:15:32 +00:00
|
|
|
"Other Territory": "98",
|
2017-06-21 11:52:38 +00:00
|
|
|
"Pondicherry": "34",
|
|
|
|
"Punjab": "03",
|
|
|
|
"Rajasthan": "08",
|
|
|
|
"Sikkim": "11",
|
|
|
|
"Tamil Nadu": "33",
|
|
|
|
"Telangana": "36",
|
|
|
|
"Tripura": "16",
|
2017-07-12 08:10:11 +00:00
|
|
|
"Uttar Pradesh": "09",
|
|
|
|
"Uttarakhand": "05",
|
2017-07-12 10:15:32 +00:00
|
|
|
"West Bengal": "19",
|
2019-12-10 10:25:05 +00:00
|
|
|
}
|
|
|
|
|
2021-02-15 08:46:00 +00:00
|
|
|
number_state_mapping = {v: k for k, v in iteritems(state_numbers)}
|