{ "info": { "author": "Oscar Cortez", "author_email": "om.cortez.2010@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Natural Language :: Spanish", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries" ], "description": "\npostalcodes-ni\n==============\n\nPython package for handle Nicaragua postal codes\n\n[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)\n[![made-with-python](https://img.shields.io/pypi/pyversions/postalcodes_ni.svg)](https://pypi.org/project/postalcodes_ni/)\n[![PyPI version](https://badge.fury.io/py/postalcodes-ni.svg)](https://badge.fury.io/py/postalcodes-ni)\n[![Travis-ci](https://travis-ci.org/oscarmcm/postalcodes-ni.png?branch=master)](https://travis-ci.org/oscarmcm/postalcodes-ni)\n[![GitHub version](https://badge.fury.io/gh/oscarmcm%2Fpostalcodes-ni.svg)](https://badge.fury.io/gh/oscarmcm%2Fpostalcodes-ni)\n[![Documentation Status](https://readthedocs.org/projects/postalcodes-ni/badge/?version=latest)](http://postalcodes-ni.readthedocs.io/?badge=latest)\n\nQuickstart\n----------\nInstall `postalcodes-ni`:\n\n $ pip install postalcodes-ni\n\nThen use it in your project:\n\n```python\nfrom postalcodes_ni import (\n get_all_municipalities_by_iso, get_all_municipalities_by_postal,\n get_municipality_by_name, get_municipality_by_postal\n)\n```\n\nYou can find the documentation in [https://postalcodes-ni.readthedocs.io](https://postalcodes-ni.readthedocs.io/en/latest/)\n\nThis package uses data from those websites:\n\n- [ISO 3166-2:NI](https://es.wikipedia.org/wiki/ISO_3166-2:NI)\n- [Postal Codes](https://es.wikipedia.org/wiki/Anexo:C%C3%B3digos_postales_de_Nicaragua)\n\nUsage\n--------------\n\n`postalcodes_ni` exposes the following methods:\n\n- `get_all_municipalities_by_iso` for get all the municipalities in a department using the ISO code - Ex **MN** for **Managua** department.\n- `get_all_municipalities_by_postal` for get all the municipalities in a department using the postal code - Ex **10000** for **Managua** department.\n- `get_municipality_by_name` for get an specific municipality using his name - Ex **Altagracia** for the **Rivas** department.\n- `get_municipality_by_postal` for get an specific municipality using his postal code - Ex **48800** for the municipality of **Altagracia** from **Rivas** department.\n\nExample\n--------------\n\nFirst, you need import the methods that you want to use\n\n```python\nfrom postalcodes_ni import (\n get_all_municipalities_by_iso, get_all_municipalities_by_postal,\n get_municipality_by_name, get_municipality_by_postal\n)\n```\n\nFor get all the municipalities in a department use the following methods\n\n```python\n>>> # Get all the municipalities in Carazo department using iso code\n>>> get_all_municipalities_by_iso('CA')\n[('Jinotepe', 45000), ('Dolores', 46100), ('El Rosario', 46200), ...]\n\n>>> # Get all the municipalities in Carazo department using postal code\n>>> get_all_municipalities_by_postal(45000)\n[('Jinotepe', 45000), ('Dolores', 46100), ('El Rosario', 46200), ...]\n```\n\nFor get an specific municipality in a department use the following methods\n\n```python\n>>> # Get a municipality using his name\n>>> get_municipality_by_name('nindiri')\n('Nindir\u00ed', 42200)\n\n>>> # Get a municipality using his postal code\n>>> get_municipality_by_postal(42500)\n('Catarina', 42500)\n```\n\nRunning Tests\n--------------\n\nDoes the code actually work?\n\n $ source env/bin/activate\n (env) $ pip install -r requirements_dev.txt\n (env) $ make test-all\n\n\n\nHistory\n=======\n\n1.0.0 (2019-03-27)\n------------------\n\n* First release on PyPI.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/oscarmcm/postalcodes-ni", "keywords": "postalcodes nicaragua", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "postalcodes-ni", "package_url": "https://pypi.org/project/postalcodes-ni/", "platform": "", "project_url": "https://pypi.org/project/postalcodes-ni/", "project_urls": { "Documentation": "https://postalcodes-ni.readthedocs.io", "Funding": "https://donate.pypi.org", "Homepage": "https://github.com/oscarmcm/postalcodes-ni", "Say Thanks!": "http://saythanks.io/to/oscarmcm", "Source": "https://github.com/oscarmcm/postalcodes-ni/", "Tracker": "https://github.com/oscarmcm/postalcodes-ni/issues" }, "release_url": "https://pypi.org/project/postalcodes-ni/1.2.0/", "requires_dist": null, "requires_python": ">=3", "summary": "Python package for handle Nicaragua postal codes", "version": "1.2.0" }, "last_serial": 4998739, "releases": { "1.1.0": [ { "comment_text": "", "digests": { "md5": "db2b06615122e4146a1a11cff4d8b496", "sha256": "64ae6e73adea91d413d25786b3f272624697444c054fe9a8af95b74bac48054e" }, "downloads": -1, "filename": "postalcodes_ni-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "db2b06615122e4146a1a11cff4d8b496", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 16542, "upload_time": "2019-03-28T01:20:07", "url": "https://files.pythonhosted.org/packages/86/74/2a993e3ce2beadafc51a73ed03df7a0c8b6694638408c52c436538893c4e/postalcodes_ni-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a56d09a03e8ca14ebdcaeae68fdfffed", "sha256": "b0c16b7df64d7738254fb8b0d95997f23fa02e74b2016c51bec9d9f388e9c2bb" }, "downloads": -1, "filename": "postalcodes_ni-1.1.0.tar.gz", "has_sig": false, "md5_digest": "a56d09a03e8ca14ebdcaeae68fdfffed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 27681, "upload_time": "2019-03-28T01:20:10", "url": "https://files.pythonhosted.org/packages/17/2e/9189d487a8a04beca8db62c6ffd939769f3022f50c482678563d944393b6/postalcodes_ni-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "ff40209e8aa05c4ddebb8c3fecb66094", "sha256": "b2ab39ad54a9c57ff470875f2b80ffa1f66690f093345c5c388807fbbaf59664" }, "downloads": -1, "filename": "postalcodes_ni-1.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ff40209e8aa05c4ddebb8c3fecb66094", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 16781, "upload_time": "2019-03-28T16:34:34", "url": "https://files.pythonhosted.org/packages/eb/cb/a6e3febb80e2546529412b75f5d1b0a42f41fa2a0704bb1619c300cb19fa/postalcodes_ni-1.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e9cd5b4c5fec2a9aba4f3d3c9d66ffce", "sha256": "15c6f2250acc63643f7208bbc695bc47cc8a9a6bac1c12f47d3d50e422bf312c" }, "downloads": -1, "filename": "postalcodes_ni-1.1.1.tar.gz", "has_sig": false, "md5_digest": "e9cd5b4c5fec2a9aba4f3d3c9d66ffce", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 26709, "upload_time": "2019-03-28T16:34:36", "url": "https://files.pythonhosted.org/packages/fc/37/6d7ae6e32897cfaaa2ec4f06641508a41831892a405f8cd3d320abd81a99/postalcodes_ni-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "3a0099ef0cb19267c433476be1ffe7a8", "sha256": "2a488e7ba91498ce52f98f2ab269f761c603c0e97ba6523ae8fb50455a65c602" }, "downloads": -1, "filename": "postalcodes_ni-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3a0099ef0cb19267c433476be1ffe7a8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 16807, "upload_time": "2019-03-28T16:55:22", "url": "https://files.pythonhosted.org/packages/69/7e/fba5d0941dbe90adde916fe60d52acbbf01259d5226e2cbe8e2fb9b6c5ef/postalcodes_ni-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6de677dc8692f8f0a7db70c9ef2674c0", "sha256": "a215459a1082143b04259854eb1efd9a14b4f76a9de7b1310ade159a9f0df861" }, "downloads": -1, "filename": "postalcodes_ni-1.2.0.tar.gz", "has_sig": false, "md5_digest": "6de677dc8692f8f0a7db70c9ef2674c0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 26774, "upload_time": "2019-03-28T16:55:24", "url": "https://files.pythonhosted.org/packages/d6/c8/75388d45539e35cf3c8bf87926569a89c544fcf7f311c90f24aad68d8f87/postalcodes_ni-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3a0099ef0cb19267c433476be1ffe7a8", "sha256": "2a488e7ba91498ce52f98f2ab269f761c603c0e97ba6523ae8fb50455a65c602" }, "downloads": -1, "filename": "postalcodes_ni-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3a0099ef0cb19267c433476be1ffe7a8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=3", "size": 16807, "upload_time": "2019-03-28T16:55:22", "url": "https://files.pythonhosted.org/packages/69/7e/fba5d0941dbe90adde916fe60d52acbbf01259d5226e2cbe8e2fb9b6c5ef/postalcodes_ni-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6de677dc8692f8f0a7db70c9ef2674c0", "sha256": "a215459a1082143b04259854eb1efd9a14b4f76a9de7b1310ade159a9f0df861" }, "downloads": -1, "filename": "postalcodes_ni-1.2.0.tar.gz", "has_sig": false, "md5_digest": "6de677dc8692f8f0a7db70c9ef2674c0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 26774, "upload_time": "2019-03-28T16:55:24", "url": "https://files.pythonhosted.org/packages/d6/c8/75388d45539e35cf3c8bf87926569a89c544fcf7f311c90f24aad68d8f87/postalcodes_ni-1.2.0.tar.gz" } ] }