Skip to main content

mnzipcodes is a simple library for querying Mongolian zip codes.

Project description

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
>>> 
>>> 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


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.8.tar.gz (25.1 kB view details)

Uploaded Source

File details

Details for the file mnzipcode-0.0.8.tar.gz.

File metadata

  • Download URL: mnzipcode-0.0.8.tar.gz
  • Upload date:
  • Size: 25.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for mnzipcode-0.0.8.tar.gz
Algorithm Hash digest
SHA256 46db4453fa79400166e5999896692715d2c4e00c35982fe9f5cffcacf6952233
MD5 d31d51e66693db54f13b3679c7abe4e3
BLAKE2b-256 33d48e5e8f293f3d8bf3cc67d84229cb1ed93d1c0a7e9e8687b9d87ef6dff5bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page