Skip to main content

Python package for mapping pins to the place where it belong

Project description

https://img.shields.io/pypi/v/indiapins?label=PyPI&logo=PyPI&logoColor=white&color=blue Python versions CI Downloads

Indiapins is a Python package for getting the places tagged to particular Indian pincode

Data is last updated February 21, 2026, with 165,627 area pin codes

Installation

Install the plugin using ‘pip’:

$ pip install indiapins

Alternatively, install from source by cloning this repo:

$ pip install .

Features

  • Get all the mappings of given pins

  • The Python sqlite3 module is not required, so easily to use in Clouds (no additional dependencies)

  • Works with 3.10, 3.11, 3.12, 3.13, 3.14 and PyPy

  • Cross-platform: Windows, Mac, and Linux are officially supported.

  • Simple usage and very fast results

Examples

1. Exact Match

To find the names of all places, districts, circles and related information by given Indian Pincode

Important: The Pincode should be of 6 digits, in string format

indiapins.matching('110011')

[{'Name': 'Nirman Bhawan', 'BranchType': 'PO', 'DeliveryStatus': 'Delivery',
  'Circle': 'Delhi Circle', 'District': 'NEW DELHI', 'Division': 'New Delhi Central Division',
  'Region': 'Delhi Region', 'State': 'DELHI', 'Pincode': 110011,
  'Latitude': 28.6108611, 'Longitude': 77.2148611},
 {'Name': 'Udyog Bhawan', 'BranchType': 'PO', 'DeliveryStatus': 'Non Delivery',
  'Circle': 'Delhi Circle', 'District': 'NEW DELHI', 'Division': 'New Delhi Central Division',
  'Region': 'Delhi Region', 'State': 'DELHI', 'Pincode': 110011,
  'Latitude': 28.6111111, 'Longitude': 77.2127500}]

2. Valid Pincode

To check if the given Pincode is valid or not

indiapins.isvalid('110011')

True

3. District by Pincode

It extracts the district of given Indian pincode

indiapins.districtmatch('302005')

'Jaipur'

4. Coordinates of Pincode

It extracts all the coordinates of given Indian pincode

indiapins.coordinates('110011')

{'Udyog Bhawan': {'latitude': '28.6111111', 'longitude': '77.2127500'},
'Nirman Bhawan': {'latitude': '28.6108611', 'longitude': '77.2148611'}}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

indiapins-1.0.6.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

indiapins-1.0.6-py3-none-any.whl (2.5 MB view details)

Uploaded Python 3

File details

Details for the file indiapins-1.0.6.tar.gz.

File metadata

  • Download URL: indiapins-1.0.6.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for indiapins-1.0.6.tar.gz
Algorithm Hash digest
SHA256 60734a60411f703910ec51fd2bd8117c28382daffa2fe51e7debb1a84dbd573f
MD5 86e8700c7d35d869588d3a36a113bb6c
BLAKE2b-256 9d6f875f2c326d4f648e1e13adcb46639977c191d539762052cce8de33f2c47b

See more details on using hashes here.

File details

Details for the file indiapins-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: indiapins-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for indiapins-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3da697644ebe77bb8ee632f775b971c3c52eda836f1bf4841d376db4fd0675f8
MD5 ed54e7e10c7f501e1ff47aacde2c861b
BLAKE2b-256 a33f7044f699c7247f196313fa44f3f008f9c67adc0372e2be0ca1ddd9d524f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page