Skip to main content

Python package for mapping pins to the place where it belong

Project description

indiapins

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

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

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

Installation

Install the plugin using ‘pip’:

$ pip install indiapins

Alternatively, install from source by cloning this repo then running ‘setup.py’:

$ python setup.py 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.9, 3.10, 3.11, 3.12, 3.13 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'}}

History

1.0.5 (2026-02-15)

  • Fixed KeyError bug caused by inconsistent key casing in data

  • Updated pincode database with 8,436 new records (165,627 total)

  • Enhanced coordinates and district matching functions

1.0.4 (2025-01-26)

  • Added new pins

1.0.2 (2024-08-10)

  • Added latest libs

1.0.1 (2023-09-12)

  • Fix pins import error

0.1.7 (2023-09-11)

  • Update Pincode data to latest (Sept 2023)

  • Added coordinates info with pins

  • Fetch longitude and latitude of any pin

  • Update security vulnerabilities

0.1.0 (2021-07-27)

  • Match location with the pins

  • Mark pin is valid or not

  • Extract cities on basis of pins

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.5.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.5-py2.py3-none-any.whl (2.5 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: indiapins-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 fd4cdffce5e11c1656dcf42b1cfa16ce849ffd27ba2ab434fe239ef9da78d4a8
MD5 87e630c0170c43d06aed686efb76262d
BLAKE2b-256 dab8828851a8b76b809fc42815286b3a1a4bff5aae3072649d1b6bce6a9491c7

See more details on using hashes here.

File details

Details for the file indiapins-1.0.5-py2.py3-none-any.whl.

File metadata

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

File hashes

Hashes for indiapins-1.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1ebb9360b63187be9948d1617d8410657942043a2ef651eb00cf5d95575411c5
MD5 02a806bc974cad02cc170937feb56d1c
BLAKE2b-256 0b2805bae36c7039154493a649d9c6dd32f765c60db28a9026031dd0bc5d6929

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