Skip to main content

日本の郵便番号から住所を取得する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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jpzipcode-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for jpzipcode-0.2.0.tar.gz
Algorithm Hash digest
SHA256 68ccb03d5e49c4c40a08af6d7e66fa6494993a971488426f1041021ba5db33a1
MD5 c08fac710286b7072dba9a4d610c5066
BLAKE2b-256 0c541634bcfbc391ac14545028be33802422d6abdcc5b618ccd14549104d12af

See more details on using hashes here.

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

Hashes for jpzipcode-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96ceb57fd787840b2d5bd3168bf50b8e28dc725a427af4eb3ebfc53220f81311
MD5 4ea2de591cf23bd4f20f3f0ee40475c1
BLAKE2b-256 f7c642e21a254a633d00a0ff11aab666c1c63ac01aaa69d16914005fa8b6ab32

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page