{ "info": { "author": "Mosky", "author_email": "mosky.tw@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": ".. .. image:: https://pypip.in/v/zipcodetw/badge.png?v=0.5.7\n.. :target: https://pypi.python.org/pypi/zipcodetw\n..\n.. .. image:: https://pypip.in/d/zipcodetw/badge.png?v=0.5.7\n.. :target: https://pypi.python.org/pypi/zipcodetw\n\nThe ZIP Code Finder for Taiwan\n==============================\n\nThis package lets you find ZIP code by address in Taiwan.\n\nThe main features:\n\n1. Fast. It builds ZIP code index by tokenization.\n2. Gradual. It returns partial ZIP code rather than noting when address is not\n detailed enoguh.\n3. Stand-alone. It depends on nothing.\n\nUsage\n-----\n\nFind ZIP code gradually:\n\n.. code-block:: python\n\n >>> import zipcodetw\n >>> zipcodetw.find('\u81fa\u5317\u5e02')\n u'1'\n >>> zipcodetw.find('\u81fa\u5317\u5e02\u4fe1\u7fa9\u5340')\n u'110'\n >>> zipcodetw.find('\u81fa\u5317\u5e02\u4fe1\u7fa9\u5340\u5e02\u5e9c\u8def')\n u'110'\n >>> zipcodetw.find('\u81fa\u5317\u5e02\u4fe1\u7fa9\u5340\u5e02\u5e9c\u8def1\u865f')\n u'11008'\n\nAfter v0.3, you even can find ZIP code like:\n\n.. code-block:: python\n\n >>> zipcodetw.find('\u677e\u5c71\u5340')\n u'105'\n >>> zipcodetw.find('\u79c0\u5c71\u8857')\n u''\n >>> zipcodetw.find('\u53f0\u5317\u5e02\u79c0\u5c71\u8857')\n u'10042'\n\nInstallation\n------------\n\nIt is available on PyPI:\n\n.. code-block:: bash\n\n $ sudo pip install zipcodetw\n\nJust install it and have fun. :)\n\nBuild Index Manually\n--------------------\n\nIf you install it by ``pip`` or ``python setup.py install``, a ZIP code index\nwill be built automatically. But if you want to use it from source code, you\nhave to build an index manually:\n\n.. code-block:: bash\n\n $ python -m zipcodetw.builder\n\nData\n----\n\nThe ZIP code directory is provided by Chunghwa Post, and is available from:\nhttp://www.post.gov.tw/post/internet/Download/all_list.jsp?ID=2201#dl_txt_s_A0206\n\nChangelog\n---------\n\nv0.6.1\n~~~~~~\n\n1. Fix the py2 py3 compatibility. Thanks the contribution from `Poren Chiang `_ and `Ryan `_.\n\nv0.6\n~~~~\n\n1. Updated the data to 2014/12.\n\nv0.5.7\n~~~~~~\n\n1. Fixed a rarely issue that causes IndexError.\n\nv0.5.6\n~~~~~~\n\n1. Reverted removing insignificant tokens introduced in v0.5.4.\n2. It now handles insignificant tokens; and\n3. redundant units in the finding logic (``directory.find``).\n4. Allowed number token ends without unit.\n5. Now ``address.tokens`` is a list.\n\nv0.5.5\n~~~~~~\n\n1. Fixed a gradual matching issue causing some wrong results.\n\nv0.5.4\n~~~~~~\n\n1. Removed the token whose unit is insignificant automatically.\n\nv0.5.3\n~~~~~~\n\n1. Fixed and simplified the matching logic for address tail.\n2. Refined the index building logic.\n\nv0.5.2\n~~~~~~\n\n1. Fixed the issue while it was running in multi-threaded environment.\n2. Added a new argument, ``keep_alive``, for the ``Directory`` class.\n\nv0.5.1\n~~~~~~\n\n1. Refined the code slightly.\n\nv0.5\n~~~~\n\n1. It now builds a ZIP code index when you install it; so\n2. the package size is 12.5x smaller.\n3. The internal API is better now.\n\nv0.4\n~~~~\n\n1. It now shipped with an index compiled in SQLite; so\n2. initiation time is ~680x faster, i.e. ~30ms each import; and\n3. ``zipcodetw.find`` is ~1.9x slower, i.e. ~2ms each call; and\n4. has bigger package size.\n5. All code was moved into ``zipcodetw`` package.\n6. ``zipcodetw.find`` now returns unicode instead of string.\n\nv0.3\n~~~~\n\n1. It builds full index for middle tokens; and\n2. also normalizes Chinese numerals now!\n3. ``zipcodetw.find`` is ~1.06x faster.\n4. But initiation time increases to ~1.7x.\n\nv0.2\n~~~~\n\n1. ``zipcodetw.find`` is 8x faster now!\n2. It has a better tokenizing logic; and\n3. a better matching logic for sub-number now.\n4. ``zipcodetw.find_zipcodes`` was removed.\n5. Internal API was changed a lot.\n6. The tests are better now.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/moskytw/zipcodetw", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "zipcodetw", "package_url": "https://pypi.org/project/zipcodetw/", "platform": "any", "project_url": "https://pypi.org/project/zipcodetw/", "project_urls": { "Homepage": "https://github.com/moskytw/zipcodetw" }, "release_url": "https://pypi.org/project/zipcodetw/0.6.1/", "requires_dist": null, "requires_python": "", "summary": "Find Taiwan ZIP code by address fuzzily.", "version": "0.6.1" }, "last_serial": 3920176, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "035435006470c98930f19ce16540c24b", "sha256": "8fb6e951ad8cc20896cdf60ba0df0b302be71f03a702dc38f65e50877c29c4ae" }, "downloads": -1, "filename": "zipcodetw-0.1.tar.gz", "has_sig": false, "md5_digest": "035435006470c98930f19ce16540c24b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 427522, "upload_time": "2014-02-03T16:25:16", "url": "https://files.pythonhosted.org/packages/21/34/9d11559eb4212d7fe04b4f02d5dde019c5766489e6a6bf19ce9e48275002/zipcodetw-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b5da1a688d234cd246f75a63a633b57d", "sha256": "9299cc3fd9054f1a08de04eeb7cb5b252d60314c269abb78c2eb150778df420e" }, "downloads": -1, "filename": "zipcodetw-0.2.tar.gz", "has_sig": false, "md5_digest": "b5da1a688d234cd246f75a63a633b57d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 428038, "upload_time": "2014-02-05T16:24:32", "url": "https://files.pythonhosted.org/packages/fd/fd/84cdfbd28d884ada966c7e9d20f928b370d455781d411532a2fde45ea5ea/zipcodetw-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "626f26fd998bcec835cd93b6ac4a04cd", "sha256": "ef251bbde6851303a4a3e8ae70233936401f84304e51ab9d37eadc744539eda0" }, "downloads": -1, "filename": "zipcodetw-0.3.tar.gz", "has_sig": false, "md5_digest": "626f26fd998bcec835cd93b6ac4a04cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 428733, "upload_time": "2014-02-07T12:57:28", "url": "https://files.pythonhosted.org/packages/e9/0f/ee7bd5c915c412c26294e8a9a31d3b66e27222f77ff0f17a5924c5eaf3b8/zipcodetw-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "2df4c5c52f79368d19e2c540e15a5d02", "sha256": "5fa55ac9876d8b5a7bdba578b2b3b8acc7b30d739660f829fff9cae9ba688c21" }, "downloads": -1, "filename": "zipcodetw-0.4.tar.gz", "has_sig": false, "md5_digest": "2df4c5c52f79368d19e2c540e15a5d02", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5369902, "upload_time": "2014-02-09T17:16:01", "url": "https://files.pythonhosted.org/packages/5c/82/c738889c0ea180aed0c949ceb96c6df98dbede0b029b41e7bea4d98c57ac/zipcodetw-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "e6e2088a888b357e6cbe2e37ab2e9a9c", "sha256": "0cef3c983cf53908d15df3a723b63194487f7a2db25faf502852d46fa5079548" }, "downloads": -1, "filename": "zipcodetw-0.5.tar.gz", "has_sig": false, "md5_digest": "e6e2088a888b357e6cbe2e37ab2e9a9c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 430277, "upload_time": "2014-02-10T17:21:17", "url": "https://files.pythonhosted.org/packages/2a/de/d2b9a69d96cabca64db77aac67ffdb0ebddd996743d23d4f709feaef7c35/zipcodetw-0.5.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "57fdd3f79ddecc1d146cc6b545e3f5b0", "sha256": "66da64da19a7a1f8a346f1e41797458f0923b980c0bf326d624060a9108f80a8" }, "downloads": -1, "filename": "zipcodetw-0.5.1.tar.gz", "has_sig": false, "md5_digest": "57fdd3f79ddecc1d146cc6b545e3f5b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 430418, "upload_time": "2014-02-12T02:29:56", "url": "https://files.pythonhosted.org/packages/f6/73/02c52949b383906ab0ac500577cc699b7fe4e7a1b7f846c3a9fb180d3f73/zipcodetw-0.5.1.tar.gz" } ], "0.5.2": [ { "comment_text": "", "digests": { "md5": "8150d9e98ae5a04e10047c5f898b8026", "sha256": "bea17baf529ceb1d9f6b33faec5aa4b7f087a39aafcfbdaefba971b496b7dff2" }, "downloads": -1, "filename": "zipcodetw-0.5.2.tar.gz", "has_sig": false, "md5_digest": "8150d9e98ae5a04e10047c5f898b8026", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 430830, "upload_time": "2014-02-12T19:24:30", "url": "https://files.pythonhosted.org/packages/aa/0e/9d2b7d4f1f250db44dde85c57d10ff7ce3888abfeaea9af268cbfc4ff8df/zipcodetw-0.5.2.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "1fefdb251aef21cd3cc9e51325d850dd", "sha256": "26cb74ab951f7b780b037f6e294972cf6ee8401b48f6eeaaf48790ec3dbe55b6" }, "downloads": -1, "filename": "zipcodetw-0.5.3.tar.gz", "has_sig": false, "md5_digest": "1fefdb251aef21cd3cc9e51325d850dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 430797, "upload_time": "2014-02-17T20:16:58", "url": "https://files.pythonhosted.org/packages/99/e6/1599a03b3f436a670c550d3688fd4d59a55fdd5e4d5d4b6972cb4914e994/zipcodetw-0.5.3.tar.gz" } ], "0.5.4": [ { "comment_text": "", "digests": { "md5": "82df99e0744a44245eee94148779d417", "sha256": "69ee7a492e62a531c0f2ede32c21073092ea6034f734d5be2449e9f5b652f112" }, "downloads": -1, "filename": "zipcodetw-0.5.4.tar.gz", "has_sig": false, "md5_digest": "82df99e0744a44245eee94148779d417", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 430967, "upload_time": "2014-02-18T17:06:01", "url": "https://files.pythonhosted.org/packages/e1/36/d3a537118d9db0ff068d371abb15d9eaf991cdaad26e16ce018c3874578c/zipcodetw-0.5.4.tar.gz" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "a8947e317145cbfe58be487606592c70", "sha256": "75af03a9ce470c5a601c6371241660859859ada95092b5a32e88d7bf308caa54" }, "downloads": -1, "filename": "zipcodetw-0.5.5.tar.gz", "has_sig": false, "md5_digest": "a8947e317145cbfe58be487606592c70", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 431076, "upload_time": "2014-02-21T07:54:09", "url": "https://files.pythonhosted.org/packages/8b/ff/341939589675a7752fc53b3798fb71343df380a0c9dae0811ccd640108c1/zipcodetw-0.5.5.tar.gz" } ], "0.5.6": [ { "comment_text": "", "digests": { "md5": "d993b747444cabde876c9c1024742ae4", "sha256": "0cc035a446af7d7f6d80b416d4a0fea6cc003f84d6f094641846a849d29da215" }, "downloads": -1, "filename": "zipcodetw-0.5.6.tar.gz", "has_sig": false, "md5_digest": "d993b747444cabde876c9c1024742ae4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 431520, "upload_time": "2014-02-23T15:45:27", "url": "https://files.pythonhosted.org/packages/63/ab/07d502666a3a08671d772774b871fbaa08f9a127a2b2d5020237fa3188c3/zipcodetw-0.5.6.tar.gz" } ], "0.5.7": [ { "comment_text": "", "digests": { "md5": "fe1f78bd0baf723769eb21ed0f11f5ad", "sha256": "2f5f251d4f53bb9da77ae7e41516e8014cded2ad56adc3e28edcdb41ac2a5acd" }, "downloads": -1, "filename": "zipcodetw-0.5.7.tar.gz", "has_sig": false, "md5_digest": "fe1f78bd0baf723769eb21ed0f11f5ad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 431584, "upload_time": "2014-03-10T02:04:19", "url": "https://files.pythonhosted.org/packages/ce/59/bb87f3703b2f6939a32e49d3361b0fd613964f2edf86771601674df38e90/zipcodetw-0.5.7.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "843e5f5d063c652769886bd2f7466599", "sha256": "9a05a7fa56a6bd54cb236edd224d064d51ea6f574aad0e8650cfaedc21d55b5f" }, "downloads": -1, "filename": "zipcodetw-0.6.tar.gz", "has_sig": false, "md5_digest": "843e5f5d063c652769886bd2f7466599", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 436023, "upload_time": "2015-02-15T10:09:39", "url": "https://files.pythonhosted.org/packages/3d/f9/4311f364757ed049cad6a21332e9c66f8f5f24075e6d008acabe49721b49/zipcodetw-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "d12b2b5a623479a0fbce13b05ef32811", "sha256": "b2577eb91a77e772431c05228921022fff1e81be778489fcdc925cd97ede1c11" }, "downloads": -1, "filename": "zipcodetw-0.6.1.tar.gz", "has_sig": false, "md5_digest": "d12b2b5a623479a0fbce13b05ef32811", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 435700, "upload_time": "2018-06-01T10:16:24", "url": "https://files.pythonhosted.org/packages/4d/91/17123d3726cb2619a9c240a47976d55d255e3c6f85c174f74fef462e0705/zipcodetw-0.6.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d12b2b5a623479a0fbce13b05ef32811", "sha256": "b2577eb91a77e772431c05228921022fff1e81be778489fcdc925cd97ede1c11" }, "downloads": -1, "filename": "zipcodetw-0.6.1.tar.gz", "has_sig": false, "md5_digest": "d12b2b5a623479a0fbce13b05ef32811", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 435700, "upload_time": "2018-06-01T10:16:24", "url": "https://files.pythonhosted.org/packages/4d/91/17123d3726cb2619a9c240a47976d55d255e3c6f85c174f74fef462e0705/zipcodetw-0.6.1.tar.gz" } ] }