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를 통해서 지정할 수도 있고, 수동으로 지정할 수도 있다.

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.1.tar.gz (374.6 kB view details)

Uploaded Source

Built Distribution

addresskr-0.1.1-py2.py3-none-any.whl (392.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: addresskr-0.1.1.tar.gz
  • Upload date:
  • Size: 374.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for addresskr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7d0f4a85d4073a99e0a152214bd022bdeb7ee0f92a5110683962c38c0d73a8b3
MD5 487fd05f352ca6be8fb192acfc7030c9
BLAKE2b-256 9a19232338107d67e259024c32296466641a88b9955b2b08621a7927c19ef0ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: addresskr-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 392.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for addresskr-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2657cb438e0c9ded84a45b8ebdf7a2db0c9b75a8155aefbc275baf227dc582d8
MD5 7c761aa86f96ccbe44ba3511c0910799
BLAKE2b-256 2062943eb04d3fafe77eda577495bd082a76036eee89d548612cf642383e122b

See more details on using hashes here.

Supported by

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