Skip to main content

A package for working with postal codes information of Nepal

Project description


postalcodes-nepal is a python package that helps you to work with postal codes (Zip codes) of Nepal. Some of the functionality currently supported by postalcodes-nepal are:

  • Query for the postal code of any city of Nepal.
  • Check wheather a postal code is valid code of Nepal.
  • Find the post office information based on city or postal code.
  • Find postal codes of all post office within a district.
  • Find postal codes of all post office of Nepal


Run the following to install:

$ pip install postalcodes-nepal


Some simple usecases of postalcodes-nepal

from postalcodes_nepal.postalcodes import *

#Validate postal code. Checks if the postal code is valid and return True or False accordingly.

#Find the postal code of particular city. Returns postal code or if the query didnot match any city returns None.

#Returns the post office informtion of the city ie. District, Post Office, Postal Code and Post Office Type. Returns None if data doesnot match.

#Returns the city of the provided postal code. Returns None if data doesnot match.

#Returns the post office information of the postal code.  Returns None if data doesnot match.

#Returns the city and postal codes of all post office of a district. Returns None if query doesnot match.

#Returns the city and postal codes of all post offices of Nepal.

OR you can alternatively import as follows:

from postalcodes_nepal import postalcodes


#OR import individually
from postalcodes_nepal.postalcodes import validate



This project is licensed under the MIT License - see the file for details


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

postalcodes-nepal-1.0.0.tar.gz (89.3 kB view hashes)

Uploaded source

Built Distribution

postalcodes_nepal-1.0.0-py3-none-any.whl (15.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page