No project description provided
Project description
japanese-addresses
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
https://geolonia.github.io/japanese-addresses/
タイトル
Geolonia 住所データ
出典
本データは、以下のデータを元に、毎月 Geolonia にて更新作業を行っています。
スポンサー
ライセンス
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
Built Distribution
Close
Hashes for japanese_addresses-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7e3701f9bccf582085d45172f6833a03dc6c0b78b78d20c97dec0b8b7a5fb9 |
|
MD5 | 297b56cfcc0a865aac2c487fbde32035 |
|
BLAKE2b-256 | 90f8adc85496f17208dfcee6a87d32eb35d243aa2db74cc26624a46b6f7922a8 |