Skip to main content

Parse Korean address text into various address fields based on juso.go.kr API

Project description

addresskr은 도로명주소를 juso.go.kr API를 이용해서 파싱해서 부분별로 사용할 수 있는 라이브러리다.

다음과 같이 설치할 수 있다.

pip install addresskr

juso.go.kr API를 이용하기 때문에 API key를 발급 받아야 한다. 다음 주소에서 발급 받을 수 있다. https://business.juso.go.kr/addrlink/openApi/apiReqst.do

발급 받은 키는 https://github.com/theskumar/python-dotenv를 통해서 지정할 수도 있고, 수동으로 지정할 수도 있다.

.env 파일 사용하기

JUSO_GO_KR_API_KEY=xxxx

직접 지정하기

from addresskr.jusogokr import settings
settings.JUSO_GO_KR_API_KEY = 'xxxx'

API key를 설정하고 나면 다음과 같이 사용할 수 있다.

from addresskr import 도로명주소

address = 도로명주소.parse('경기도 성남시 분당구 판교역로192번길 14-2, 912-비54호 (삼평동, 골드타워)')
print(address.시군구명, address.읍면동명, address.우편번호, address.법정동코드)

도로명주소 클래스는 juso.go.kr API의 응답 필드를 한국어로 번역한 필드들에 법정동코드, 상세주소 등의 필드가 추가로 들어가 있다.

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

addresskr-0.1.9.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

addresskr-0.1.9-py2.py3-none-any.whl (2.0 MB view details)

Uploaded Python 2Python 3

File details

Details for the file addresskr-0.1.9.tar.gz.

File metadata

  • Download URL: addresskr-0.1.9.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for addresskr-0.1.9.tar.gz
Algorithm Hash digest
SHA256 17c4f21b3fb90e33b934ad1bdfaf985dff1792c4d8deefdda9e372d4b0d7e781
MD5 8cf20c7b691fa3292c87ece3ebb67c4b
BLAKE2b-256 0a034ef8b7d26f3593ee9d69533e3df5da80476a8d0902e1f1e776a7d08d0306

See more details on using hashes here.

File details

Details for the file addresskr-0.1.9-py2.py3-none-any.whl.

File metadata

  • Download URL: addresskr-0.1.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for addresskr-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 20374a0bf0ce7cc07da5acad8b725c6fba13592306cb9f4514e9d6a0104bf425
MD5 a612216654ea0006d7008b9e871d5e3c
BLAKE2b-256 632d6f6b8b3f84b871b93dcd48f3075e8ddd3dc871f23352a169023ae17d2b88

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