pyzipcin
1.0.0
A python3 library providing information and validation of ZIP codes of India based on data from data.gov.in(2019)
Explore the docs »
View Demo
·
Report Bug
A python3 library providing information of ZIP codes of India as well as Verify Pincode based on data from data.gov.in(2019)
Python3 and Above
Install the Library ?
pip install pyzipcinAnd you are done ?
>>> from pyzipcin import *
>>> decode(110032) # decode(pincode, all_result=False)
>>> [{'circlename': 'Delhi Circle', 'regionname': 'NA', 'divisionname': 'Delhi East Division', 'officename': 'Babarpur SO North East Delhi', 'pincode': 110032, 'officetype': 'SO', 'delivery': 'Non Delivery', 'district': 'SHAHDARA', 'statename': 'Delhi'}]
>>> encode('kullu') # encode(districtname)
>>> [{'pincode': 175101, 'officename': 'Akhara Bazar SO'}]
>>> validate(110032) # validate(pincode)
>>> True
Distributed under the MIT License. See LICENSE for more information.
CodewithRv - [email protected]
Project Link: https://github.com/ravigoel08/pyzipcin