mnzipcodes is a simple library for querying Mongolian zip codes.
Project description
mnzipcodes is a simple library for querying Mongolian zip codes.
Installation
mnzipcode is available on PyPi:
# python -m pip install mnzipcode
Example usage:
>>> import mnzipcode
>>>
>>> obj = mnzipcode.ZipCode()
>>>
>>> obj.matching_by_zipcode(11000)
{'name': 'Ulaanbaatar', 'stat': 'province', 'mnname': 'Улаанбаатар', 'year_established': 1942, 'area': 4704.4, 'population': 1539810, 'density': 327}
>>>
>>> obj.matching_by_name('Дархан-Уул')
[{'name': 'Darkhan-Uul', 'zipcode': '45000', 'stat': 'province', 'mnname': 'Дархан-Уул', 'year_established': 1994, 'area': 3275.0, 'population': 107018, 'density': 33}, {'name': 'Дархан-Уул', 'zipcode': '81041', 'stat': 'bag'}, {'name': 'Дархан-Уул', 'zipcode': '81063', 'stat': 'bag'}]
>>>
>>> obj.isReal(11000)
True
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
mnzipcode-0.0.6.tar.gz
(24.3 kB
view details)
File details
Details for the file mnzipcode-0.0.6.tar.gz
.
File metadata
- Download URL: mnzipcode-0.0.6.tar.gz
- Upload date:
- Size: 24.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2af3b83b706eec2616fcf20f93eb9c557e807d822e24828be9bc6b261ea6a9ed |
|
MD5 | ba77679da6d2eb0b91d52282d3527c4c |
|
BLAKE2b-256 | 6da1bfcaff5c6f4ded783eb949d6c18dbfcad07ca3bd994ccab83927aad36051 |