Skip to main content

No project description provided

Project description

japanese-addresses

PyPI version Python package codecov Binder

Parsing Japan addresses to prefectures and cities.

Installation

pip install japanese-addresses

Examples

from japanese_addresses import separate_address

parsed_address = separate_address('宮城県仙台市泉区市名坂字東裏97-1')

print(parsed_address)
"""
ParsedAddress(prefecture='宮城県', city='仙台市泉区', street='市名坂')
"""

parsed_address = separate_address('鹿児島県志布志市志布志町志布志')

print(parsed_address)
"""
ParsedAddress(prefecture='鹿児島県', city='志布志市', street='志布志町志布志')
"""

Testing

pip install poetry
poetry install
poetry run pytest

License

Japanese_addresses are licensed under MIT

prefecture2city2street.pkl

prefecture2city2street.pkl is a derivative work with a modification of geolonia / japanese-addresses

Also, prefecture2city2street.pkl was created using csv_to_dict.py

Information on the original work

geolonia/japanese-addresses - GitHub

https://geolonia.github.io/japanese-addresses/

タイトル

Geolonia 住所データ

出典

本データは、以下のデータを元に、毎月 Geolonia にて更新作業を行っています。

スポンサー

一般社団法人 不動産テック協会

ライセンス

CC BY 4.0

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

japanese-addresses-0.0.3.tar.gz (1.3 MB view hashes)

Uploaded Source

Built Distribution

japanese_addresses-0.0.3-py3-none-any.whl (1.3 MB view hashes)

Uploaded Python 3

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