pip3 install pyindia-zipcode
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.
>>> from pyindia_zipcode import ZipCode
>>>
>>> obj = ZipCode()
>>>
In this 625003
zip code infomation
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.
>>> from pyindia_zipcode import ZipCode
>>>
>>> obj = ZipCode()
>>>
>>> obj.get_zipcode_info(625003)
>>>
[
{
"ID": 119891, "officename": "Alagappa Nagar S.O",
"pincode": "625003", "officeType": "S.O",
"Deliverystatus": "Non-Delivery", "divisionname": "Madurai",
"regionname": "Madurai", "circlename": "Tamilnadu",
"Taluk": "Madurai South", "Districtname": "Madurai",
"statename": "TAMIL NADU", "Telephone": "0452-2343894",
"Related Suboffice": "NA", "Related Headoffice": "Madurai H.O",
"longitude": "NA", "latitude": "NA"
}, {
"ID": 120019, "officename": "Madakkulam B.O",
"pincode": "625003", "officeType": "B.O",
"Deliverystatus": "Delivery", "divisionname": "Madurai",
"regionname": "Madurai", "circlename": "Tamilnadu",
"Taluk": "Madurai South", "Districtname": "Madurai",
"statename": "TAMIL NADU", "Telephone": "NA",
"Related Suboffice": "Palanganatham S.O", "Related Headoffice": "Madurai H.O",
"longitude": "NA", "latitude": "NA"
}, {
"ID": 120073, "officename": "Palanganatham S.O",
"pincode": "625003", "officeType": "S.O",
"Deliverystatus": "Delivery", "divisionname": "Madurai",
"regionname": "Madurai", "circlename": "Tamilnadu",
"Taluk": "Madurai South", "Districtname": "Madurai",
"statename": "TAMIL NADU", "Telephone": "0452-2373669",
"Related Suboffice": "NA", "Related Headoffice": "Madurai H.O",
"longitude": "NA", "latitude": "NA"
}, {
"ID": 120185, "officename": "Tvs Nagar S.O",
"pincode": "625003", "officeType": "S.O",
"Deliverystatus": "Non-Delivery", "divisionname": "Madurai",
"regionname": "Madurai", "circlename": "Tamilnadu",
"Taluk": "Madurai South", "Districtname": "Madurai",
"statename": "TAMIL NADU", "Telephone": "0452-2373669",
"Related Suboffice": "NA", "Related Headoffice": "Madurai H.O",
"longitude": "NA", "latitude": "NA"
}
]
The first digit of a PIN indicates the zone, the second indicates the sub-zone, and the third, combined with the first two, indicates the sorting district within that zone. The final three digits are assigned to individual post offices within the sorting district.