A package for working with postal codes information of Nepal
Project description
postalcodes-nepal
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
Installation
Run the following to install:
$ pip install postalcodes-nepal
Usage
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.
validate(44660)
#Find the postal code of particular city. Returns postal code or if the query didnot match any city returns None.
postal_code('Kathmandu')
#Returns the post office informtion of the city ie. District, Post Office, Postal Code and Post Office Type. Returns None if data doesnot match.
city_po_info('Kathmandu')
#Returns the city of the provided postal code. Returns None if data doesnot match.
postalcode_to_city(44600)
#Returns the post office information of the postal code. Returns None if data doesnot match.
`postalcode_info(44600)
#Returns the city and postal codes of all post office of a district. Returns None if query doesnot match.
district_data('Jhapa')
#Returns the city and postal codes of all post offices of Nepal.
country_data()
OR you can alternatively import as follows:
from postalcodes_nepal import postalcodes
postalcodes.validate(44600)
#OR import individually
from postalcodes_nepal.postalcodes import validate
validate(44600)
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file postalcodes-nepal-1.0.0.tar.gz.
File metadata
- Download URL: postalcodes-nepal-1.0.0.tar.gz
- Upload date:
- Size: 89.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5554452482ad77b19290f889d0d0f7b193c4ceb8b32a1757a98355da237b369a
|
|
| MD5 |
2d24bf9fdcc77e288a6e004d7e30b2ba
|
|
| BLAKE2b-256 |
e86b2166898df57996dece069bbb78964e5381a2777370c48760198347ba6102
|
File details
Details for the file postalcodes_nepal-1.0.0-py3-none-any.whl.
File metadata
- Download URL: postalcodes_nepal-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5848ec0a52030113ff0ea977f388d6fb34ba8ee2fd9cbd1d2d43bc486372db1c
|
|
| MD5 |
134f74f69b4d2ccb38b3dc8e717af04e
|
|
| BLAKE2b-256 |
7f17b8bfa6e65e6a89df0c81659aa6a009afdb674a676cfae8b34b0daac60093
|