mnzipcode is a simple library for querying Mongolian zip codes.
Project description
mnzipcode
mnzipcode is a simple library for querying Mongolian zip codes.
Installation
mnzipcode is available on PyPi:
# python -m pip install mnzipcode
Example usage:
>>> 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
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.1.23.tar.gz
(18.4 kB
view details)
File details
Details for the file mnzipcode-0.1.23.tar.gz
.
File metadata
- Download URL: mnzipcode-0.1.23.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3586f144346836006e5ac5615f65fe5d15fc5e84096a89e0ffff5d9097408fe9 |
|
MD5 | 7e7a25f9cc8942686bc26bc4d715496b |
|
BLAKE2b-256 | 205d5a32e813824b9f5b5151435ddc1dd7f790858965a3281c4b07d259af3ece |