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
File details
Details for the file japanese-addresses-0.0.3.tar.gz
.
File metadata
- Download URL: japanese-addresses-0.0.3.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9300008f9dbd96d34bc47485a905bfa608c6dd1f54ef18f99370fe9edad7468 |
|
MD5 | c0a995fa57ef0e77a598ef8164827d3d |
|
BLAKE2b-256 | b1d13ca5bf6ed9992edb6e3d482e39a137f898796674da2c7097080a3ddc7ebc |
File details
Details for the file japanese_addresses-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: japanese_addresses-0.0.3-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.6.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7e3701f9bccf582085d45172f6833a03dc6c0b78b78d20c97dec0b8b7a5fb9 |
|
MD5 | 297b56cfcc0a865aac2c487fbde32035 |
|
BLAKE2b-256 | 90f8adc85496f17208dfcee6a87d32eb35d243aa2db74cc26624a46b6f7922a8 |