Skip to main content

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

Release files for japanese-addresses 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for japanese-addresses 0.0.3
File Size Uploaded
japanese-addresses-0.0.3.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for japanese-addresses 0.0.3
File Interpreter ABI Platform
japanese_addresses-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 2.7 MB

Release files / japanese-addresses-0.0.3.tar.gz

Download URL japanese-addresses-0.0.3.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
d9300008f9dbd96d34bc47485a905bfa608c6dd1f54ef18f99370fe9edad7468
BLAKE2b-256 checksum
How to use checksums
b1d13ca5bf6ed9992edb6e3d482e39a137f898796674da2c7097080a3ddc7ebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.6.5 Windows/10

Release files / japanese_addresses-0.0.3-py3-none-any.whl

Download URL japanese_addresses-0.0.3-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
da7e3701f9bccf582085d45172f6833a03dc6c0b78b78d20c97dec0b8b7a5fb9
BLAKE2b-256 checksum
How to use checksums
90f8adc85496f17208dfcee6a87d32eb35d243aa2db74cc26624a46b6f7922a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.5 CPython/3.6.5 Windows/10

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page