日本の郵便番号から住所を取得する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.0.tar.gz
(6.7 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.0.tar.gz.
File metadata
- Download URL: jpzipcode-0.2.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68ccb03d5e49c4c40a08af6d7e66fa6494993a971488426f1041021ba5db33a1
|
|
| MD5 |
c08fac710286b7072dba9a4d610c5066
|
|
| BLAKE2b-256 |
0c541634bcfbc391ac14545028be33802422d6abdcc5b618ccd14549104d12af
|
File details
Details for the file jpzipcode-0.2.0-py3-none-any.whl.
File metadata
- Download URL: jpzipcode-0.2.0-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 |
96ceb57fd787840b2d5bd3168bf50b8e28dc725a427af4eb3ebfc53220f81311
|
|
| MD5 |
4ea2de591cf23bd4f20f3f0ee40475c1
|
|
| BLAKE2b-256 |
f7c642e21a254a633d00a0ff11aab666c1c63ac01aaa69d16914005fa8b6ab32
|