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.23.tar.gz
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23.tar.gz
- Upload date:
- Size: 49.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db5cbe9aaba5ade4f55281ca579e10bc3c134dae25b3add32bffcdf28038f473 |
|
MD5 | 6a22b00fbfdacebe9bb0f21d414a9269 |
|
BLAKE2b-256 | 89eb30382f6c2c85fc14ed7d522412e5f2c500959cf80e67fa1eec672ae62110 |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-win_amd64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-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 | 9671e1e1880324183f5683caa884cfc6e77ff9666a5057899ce35263e3f74ca4 |
|
MD5 | 45312d9ce9211eb22111b24a710c2728 |
|
BLAKE2b-256 | 5ab6da30ca4539b65ca9d9d3ee60ae9bb2450cf13888275807634fb4e623dc32 |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-win32.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-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 | 42bbc809327b5c77f91453b75433019b84392d3a8f8754f62925e7bb36bf683d |
|
MD5 | 7886ba24875b1a16176035ede4db0aa5 |
|
BLAKE2b-256 | d60ae88e71ef793d39f7625b37c2fdb2d0f923a9d9bf655c5b9479eb80dfb9ba |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-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 | d74d33d44c8fb05d9e8698bc65e98818eb327abfe2c0e8a86e565c81c042bf45 |
|
MD5 | 8955fb469f028315c9b33e3a4db40462 |
|
BLAKE2b-256 | 14b425672d536bdf292dbec2cd75badd3a33fa98f445998962bd82f47af5f559 |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-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 | 5274251fc2c7b7986369acc850ad9cb1a269834a9fd4316fba41972c04a98012 |
|
MD5 | d858da42b381c540159926441eca2d49 |
|
BLAKE2b-256 | 3d4c9f70dd12d40ada6d15d59c74b8fe8c5b8ac0c7e5c4ce7259ef3b0a76b7b5 |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
- Upload date:
- Size: 1.8 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 | f3ece37f1397205d509971923cd2b4e3a726c7793ab0347dcad0a0e597b4bdce |
|
MD5 | deaf55d2a29b36e97bbe9bd7df0fc21b |
|
BLAKE2b-256 | e84d8057829874e4ff190ef5d9516e23508ffcca601c0ff3664b7b01aa45ae7d |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
- Upload date:
- Size: 1.8 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 | 62fa03aaa06a07f89eace3dffb86266dcacfab11f9270bcbc95498e2988f9df8 |
|
MD5 | c99af713fe46f9471fda6f779d6bbb0c |
|
BLAKE2b-256 | 92d149723b3ec6f277bb2758ffbfffce4ec55365d843cd8ed19a1e8cdccfd1ba |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 1.5 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 | f38fd73d90e94f7ac6c12744f37537d7625a19eae1f8325f1c863e01868493d3 |
|
MD5 | ff882715c9af1dae962616389e7a4a10 |
|
BLAKE2b-256 | f83462dfbc96d5b195f697ef9ee55efbf742b21c82464c80c2b46054140bc228 |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-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 | c5f2922f994101bb5fa5ec31faa635913b5bb50002c3350a83c35e3cb26603ee |
|
MD5 | 8f013a3de6da5242a38c829965f45a79 |
|
BLAKE2b-256 | 2bfd9d0f444099d901228c678f63f207d792c2ad6ce393bb8cfaf9a721ddb18f |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-macosx_11_0_arm64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.9 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 | 0f0f40f4fcbc84c746ef1dd4a431e3924a873a163e2f6e8531c52ff0fd3dcf1e |
|
MD5 | 9a8edc24c3f0a62aba765822d03d59c2 |
|
BLAKE2b-256 | 663a219bc5e609ecfa6ef83a421c85852e782804ac9dd488dfbb7a4820aa2d9b |
File details
Details for the file japanese_address_parser_py-0.1.23-cp37-abi3-macosx_10_12_x86_64.whl
.
File metadata
- Download URL: japanese_address_parser_py-0.1.23-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 | 8015cf353dc9b60d85d37177cb0faf30a0fd83575fa354c27ce014b153cfe21e |
|
MD5 | 817349381957b8384896041f0d21017a |
|
BLAKE2b-256 | 6e72080331bcd96be0cd71bcf52e2a12fbee764f2724cb7b9e4e45daefbf17b5 |