# mnzipcode
mnzipcode is a simple library for querying Mongolian zip codes.
- Video introduction: [YOUTUBE](https://www.youtube.com/watch?v=vml3CxglLko)
- PYPI: [MNZIPCODE](https://pypi.org/project/mnzipcode/)
### Installation
mnzipcode is available on PyPi:
```
# python -m pip install mnzipcode
```
### Example usage:
```python
>>> import mnzipcode
>>> mnzipcode.matching_by_zipcode(11000)
{
'stat': 'capital',
'mnname': 'Улаанбаатар',
'name': 'Ulaanbaatar',
'year_established': 1942,
'area': 4704.4,
'population': 1539810,
'density': 327,
'zipcode': '11000'
}
>>> mnzipcode.filter(mnname='Дархан-Уул')
[
{
'stat': 'province',
'mnname': 'Дархан-Уул',
'name': 'Darkhan-Uul',
'year_established': 1994,
'area': 3275.0,
'population': 107018,
'density': 33,
'zipcode': '45000',
'capital': 'Darkhan',
'capitalmn': 'Дархан'},
{
'mnname': 'Дархан-Уул',
'zipcode': '81041'
},
{
'mnname': 'Дархан-Уул',
'zipcode': '81063'
}
]
>>> mnzipcode.is_real(11000)
True
>>> mnzipcode.similar_to(8501)
[
{'mnname': 'Зүүнхангай',
'zipcode': '85010'
},
{
'mnname': 'Даланбулаг',
'zipcode': '85011'
},
{
'mnname': 'Хайрхан', 'zipcode': '85013'
},
{
'mnname': 'Жаргалант',
'zipcode': '85015'
},
{
'mnname': 'Баянгол',
'zipcode': '85017'
}
]
```
Raw data
{
"_id": null,
"home_page": "https://github.com/bekkage/mnzipcode",
"name": "mnzipcode",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "mnzipcode zipcode mongolia mn zip code",
"author": "Bekkage",
"author_email": "bilguunsec@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/28/c5/6fb0fc84d0b63ab102428bce0003eba188f23f1f181a980b1ee8aea840a2/mnzipcode-0.1.25.tar.gz",
"platform": null,
"description": "# mnzipcode\nmnzipcode is a simple library for querying Mongolian zip codes.\n\n - Video introduction: [YOUTUBE](https://www.youtube.com/watch?v=vml3CxglLko)\n - PYPI: [MNZIPCODE](https://pypi.org/project/mnzipcode/)\n\n### Installation\n\nmnzipcode is available on PyPi:\n```\n# python -m pip install mnzipcode\n```\n\n### Example usage:\n\n```python\n>>> import mnzipcode \n\n\n>>> mnzipcode.matching_by_zipcode(11000)\n{\n 'stat': 'capital', \n 'mnname': '\u0423\u043b\u0430\u0430\u043d\u0431\u0430\u0430\u0442\u0430\u0440', \n 'name': 'Ulaanbaatar', \n 'year_established': 1942, \n 'area': 4704.4, \n 'population': 1539810, \n 'density': 327, \n 'zipcode': '11000'\n}\n\n\n>>> mnzipcode.filter(mnname='\u0414\u0430\u0440\u0445\u0430\u043d-\u0423\u0443\u043b')\n[\n {\n 'stat': 'province', \n 'mnname': '\u0414\u0430\u0440\u0445\u0430\u043d-\u0423\u0443\u043b', \n 'name': 'Darkhan-Uul', \n 'year_established': 1994, \n 'area': 3275.0, \n 'population': 107018, \n 'density': 33, \n 'zipcode': '45000', \n 'capital': 'Darkhan', \n 'capitalmn': '\u0414\u0430\u0440\u0445\u0430\u043d'}, \n {\n 'mnname': '\u0414\u0430\u0440\u0445\u0430\u043d-\u0423\u0443\u043b', \n 'zipcode': '81041'\n }, \n {\n 'mnname': '\u0414\u0430\u0440\u0445\u0430\u043d-\u0423\u0443\u043b', \n 'zipcode': '81063'\n }\n]\n\n>>> mnzipcode.is_real(11000)\nTrue\n\n>>> mnzipcode.similar_to(8501)\n[\n {'mnname': '\u0417\u04af\u04af\u043d\u0445\u0430\u043d\u0433\u0430\u0439', \n 'zipcode': '85010'\n }, \n {\n 'mnname': '\u0414\u0430\u043b\u0430\u043d\u0431\u0443\u043b\u0430\u0433', \n 'zipcode': '85011'\n }, \n {\n 'mnname': '\u0425\u0430\u0439\u0440\u0445\u0430\u043d', 'zipcode': '85013'\n }, \n {\n 'mnname': '\u0416\u0430\u0440\u0433\u0430\u043b\u0430\u043d\u0442', \n 'zipcode': '85015'\n }, \n {\n 'mnname': '\u0411\u0430\u044f\u043d\u0433\u043e\u043b', \n 'zipcode': '85017'\n }\n]\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "mnzipcode is a simple library for querying Mongolian zip codes.",
"version": "0.1.25",
"project_urls": {
"Homepage": "https://github.com/bekkage/mnzipcode"
},
"split_keywords": [
"mnzipcode",
"zipcode",
"mongolia",
"mn",
"zip",
"code"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "28c56fb0fc84d0b63ab102428bce0003eba188f23f1f181a980b1ee8aea840a2",
"md5": "fdea749137863a7292e9703bfc9cc95b",
"sha256": "a013bde1104a1de92c75f1a930b49fd0f3222d9f8cecd42426697a604559b99c"
},
"downloads": -1,
"filename": "mnzipcode-0.1.25.tar.gz",
"has_sig": false,
"md5_digest": "fdea749137863a7292e9703bfc9cc95b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18496,
"upload_time": "2023-08-07T08:29:00",
"upload_time_iso_8601": "2023-08-07T08:29:00.544339Z",
"url": "https://files.pythonhosted.org/packages/28/c5/6fb0fc84d0b63ab102428bce0003eba188f23f1f181a980b1ee8aea840a2/mnzipcode-0.1.25.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-07 08:29:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bekkage",
"github_project": "mnzipcode",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "mnzipcode"
}