Skip to content

THAVASIGTI/pyindia_zipcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyindia_zipcode

Code style: black PyPI Downloads

Find Post Office Details from PinCode, All India Post Office Pincode Data

INSTALL

pip3 install pyindia-zipcode

IMPORT PKG

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()
>>> 

ZIP CODE INFO

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)
>>> 

output

[
    {
        "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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages