A Rust Library to parse japanese addresses.
Project description
japanese-address-parser-py
A Python toolkit for processing Japanese addresses
What is it?
japanese-address-parser-py is a Python package for parsing Japanese addresses. Any address can be parsed into structured data.
Installation from PyPI
pip install japanese-address-parser-py
Usage
from japanese_address_parser_py import Parser
address_list = [
"埼玉県さいたま市浦和区高砂3-15-1",
"千葉県千葉市中央区市場町1-1",
"東京都新宿区西新宿2-8-1",
"神奈川県横浜市中区日本大通1"
]
parser = Parser()
for address in address_list:
parse_result = parser.parse(address)
print(parse_result.address)
{'prefecture': '埼玉県', 'town': '高砂三丁目', 'rest': '15-1', 'city': 'さいたま市浦和区'}
{'rest': '1-1', 'town': '市場町', 'prefecture': '千葉県', 'city': '千葉市中央区'}
{'prefecture': '東京都', 'rest': '8-1', 'town': '西新宿二丁目', 'city': '新宿区'}
{'town': '日本大通', 'city': '横浜市中区', 'prefecture': '神奈川県', 'rest': '1'}
from japanese_address_parser_py import Parser
parser = Parser()
address = "神奈川県横浜市中区本町6丁目50-10"
parse_result = parser.parse(address)
print(parse_result.address["prefecture"])
print(parse_result.address["city"])
print(parse_result.address["town"])
print(parse_result.address["rest"])
神奈川県
横浜市中区
本町六丁目
50-10
Development
This library is written in Rust. You need to set up a Rust development environment to build this library.
Also, you need to install maturin
as this library uses it in order to generate Python bindings.
# Install maturin
cargo install --locked maturin
# Clone repository
git clone https://github.com/YuukiToriyama/japanese-address-parser.git
# Build python module
cd japanse-address-parser/python
maturin build --release --out dist --find-interpreter
# Install the built library
python3 -m venv .venv
pip3 install dist/japanese_address_parser_py-[version]-cp37-abi3-[arch].whl
Support
This software is maintained by YuukiToriyama. If you have any questions, please create a new issue.
Where to get source code
The source code is hosted on GitHub at: https://github.com/YuukiToriyama/japanese-address-parser
Acknowledgements
This software was inspired
by @geolonia/normalize-japanese-addresses.
In addition, the parsing process uses Geolonia 住所データ which is
provided by 株式会社Geolonia.
License
This crate is distributed under the terms of the MIT license.
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 Distributions
File details
Details for the file japanese_address_parser_py-0.1.22.tar.gz
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22.tar.gz
- Upload date:
- Size: 47.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9ff5c69a7fe00ceaa861937e0eb2f1a2255a79a39337647daf8471ca28b1d78 |
|
MD5 | 916fbbacf23518cd6703046fa64c6370 |
|
BLAKE2b-256 | 6157cd0550fe9c7dcf829ad20a7fe62fe1655a409cfd62d844fb1ecbdeb2be43 |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-win_amd64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f936da60d955e3d3a05cff35c996dc65c8295663940fd31f36ba6b2c43501e7 |
|
MD5 | acaece7c310957811708c63db63b52a3 |
|
BLAKE2b-256 | 3c954db2312a135342551df13a95d85b75415dc9da2bd3bbb1ba85ccfffb98b7 |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-win32.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-win32.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.7+, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67511cd88eff04f85620986468954f4b2840ba9fd8a94e6d91385e374d5818e2 |
|
MD5 | 8bc100388a51a36ac1e578befbc3a939 |
|
BLAKE2b-256 | d16a86f32286a7f4c543126d8883d94e1909f7120d922d7ab8a25b803e63d1bc |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91c060c7b2dcd89c4fc16bb8afa9e4c0aae229398edb7cd5eacad35348aa2b3c |
|
MD5 | 3ff830f619f0b97971626286a27e1ce6 |
|
BLAKE2b-256 | bae89428d0db0d56da058560af7687614110270d2bb2fb9d8ea1dfd0f6dbdf1c |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
- Upload date:
- Size: 2.3 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ s390x
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a863293597ef15e96b341a1588386208ccc150100d8efc651a144258e8fa95f |
|
MD5 | 2d4d03512a01ebca163aa3bba2535535 |
|
BLAKE2b-256 | 1e64922fcd852134a3dba136604414c68b1ad4c40a3a03844f7337acfbc13c0c |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ppc64le
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27460a7112951d187fba4e97b7c7c98dfd1b00f5d287eeefef4aedadcdbd892 |
|
MD5 | bc903fa914860cace7c01e92ca8cf6bb |
|
BLAKE2b-256 | f2bb2392bcd5b8465caca11185b8003c606862a37ed0f53cd1165cf3a8321f27 |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 1.9 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ i686
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9933c121fd1d8e689956b3ed0194119adcbe378425f5e16a15052ec90f324496 |
|
MD5 | 2b141b6dc89aca5fb24f61c8be4febbb |
|
BLAKE2b-256 | 571a4b80090ab5a63031d50445f6cae3a010537a015bec7e6cf11e9f8a9d00fe |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cf4a8b312a7a771e1c85c4c2d13e79d31d9903a4809118202276888c63899e5 |
|
MD5 | 11547b4cbd5f6f626b3d4dc790d7199f |
|
BLAKE2b-256 | 0a40a479c9e074b184376185fcdad14955e1c73a5eb5c169c5f4594a7c7e2ef2 |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f617e6118eb870633d1b5a38a3b1137a68bb024a69c6b54d59fdce2ea5fe426 |
|
MD5 | e0961f6e365736bf5d1111c0c74387c7 |
|
BLAKE2b-256 | a848ad5d7c7ee382636b6d15119663a839ecc896cb8a9fc4a6d324b71218c4f3 |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73557054542d0fac0c1176b63951c9ed5018db9900621251b407e3b1ff98bfa8 |
|
MD5 | 9257671e7c02fec1e1e5fcf20861b297 |
|
BLAKE2b-256 | 74af1cdd9943c240e0a4c6293a87277f67363b7a5871140752bd0f14d6061d92 |
File details
Details for the file japanese_address_parser_py-0.1.22-cp37-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.22-cp37-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.7+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3816bc95aee1e6af8b32850a8f689f1ab9df0616ae3a2b9828bb7421e724fa18 |
|
MD5 | 1986c5f3ea14edf5cddfbadf62d360a6 |
|
BLAKE2b-256 | 292f9af4ee797c4678af6c7fd1313a62137b40dc4eb7e4db0969f97da7930889 |