日本の郵便番号から住所を取得するAPI
Project description
jpzipcode
郵便番号から住所を取得するためのライブラリ
Usage
from jpzipcode import read_csv_file, read_official_URL, OFFICIAL_FILE_NAME
import os
# 日本郵便のサイトからダウンロードして郵便番号を取得
resolver = read_official_URL()
zips = resolver.resolve("5650871")
# ファイルを読み込んで取得
resolver = read_csv_file(os.path.join("ダウンロード", OFFICIAL_FILE_NAME))
zips = resolver.resolve("5650871")
print(zips) # [Zip(zip_code='5650871', address=Address(prefecture='大阪府', city='吹田市', town='山田丘'), address_kana=Address(prefecture='オオサカフ', city='スイタシ', town='ヤマダオカ'))]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jpzipcode-0.2.1.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jpzipcode-0.2.1.tar.gz.
File metadata
- Download URL: jpzipcode-0.2.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ff8d71e5a8d4afac662bd11241e679ebca1bd7488994c57535c35f93a9c55d8
|
|
| MD5 |
d073fbcabed4bf6436b4e38edcf6ed81
|
|
| BLAKE2b-256 |
55b461ef8ad5cf237823bbc0f9651ed68c8cd55f21d55ad02c210b4fe485cc76
|
File details
Details for the file jpzipcode-0.2.1-py3-none-any.whl.
File metadata
- Download URL: jpzipcode-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4db01cb2aeb5c4beab453debac6f2a7a5706be279d8f7518e3b3ae2baccb5df
|
|
| MD5 |
d25d3584f33c34d217ba1daa17b781d2
|
|
| BLAKE2b-256 |
f15c265aad64a1a6aa3ec5626e567d45b008f52a10822825f1da822e1e6c4c5d
|