Python package for handle Nicaragua postal codes
Project description
postalcodes-ni
Python package for handle Nicaragua postal codes
Quickstart
Install postalcodes-ni
:
$ pip install postalcodes-ni
Then use it in your project:
from postalcodes_ni import (
get_department_by_iso, get_department_by_postal,
get_municipality_by_name, get_municipality_by_postal
)
This package uses data from those websites:
Usage
postalcodes_ni
exposes the following methods:
get_department_by_iso
for get all the municipalities in a department using the ISO code - Ex MN for Managua department.get_department_by_postal
for get all the municipalities in a department using the postal code - Ex 10000 for Managua department.get_municipality_by_name
for get an expecific municipality using his name - Ex Altagracia for the Rivas department.get_municipality_by_postal
for get an expecific municipality using his postal code - Ex 48800 for the municipality of Altagracia from Rivas department.
Running Tests
Does the code actually work?
$ source env/bin/activate
(env) $ pip install -r requirements_dev.txt
(env) $ make test-all
History
1.0.0 (2019-03-27)
- First release on PyPI.
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
postalcodes_ni-1.1.0.tar.gz
(27.7 kB
view hashes)
Built Distribution
Close
Hashes for postalcodes_ni-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64ae6e73adea91d413d25786b3f272624697444c054fe9a8af95b74bac48054e |
|
MD5 | db2b06615122e4146a1a11cff4d8b496 |
|
BLAKE2b-256 | 86742a993e3ce2beadafc51a73ed03df7a0c8b6694638408c52c436538893c4e |