Skip to main content

한국어 개인정보(PII) 탐지·마스킹 엔진 (의존성 0)

Project description

korean-pii

한국어 개인정보(PII)를 탐지·마스킹하는 순수 Python 엔진입니다. 런타임 의존성이 없습니다 (표준 라이브러리만 사용).

주민등록번호·외국인등록번호(체크섬 검증), 전화번호, 신용카드번호(Luhn), 이메일, 계좌번호·여권번호(문맥 조건부), 운전면허번호, API 키/시크릿을 정규식 + 유효성 검증으로 탐지해 오탐을 억제합니다.

pip install korean-pii
from korean_pii import detect, mask, MaskPolicy

text = "주민번호 990101-1234567, 연락처 010-1234-5678"

for d in detect(text):
    print(d.type, d.start, d.end)   # rrn 5 19 / phone 26 39

print(mask(text).text)
# 주민번호 990101-1••••••, 연락처 •••-••••-5678

print(mask(text, MaskPolicy(mode="placeholder")).text)
# 주민번호 [주민등록번호], 연락처 [전화번호]

중요: 이 라이브러리는 보조 방어 계층입니다. 모든 개인정보 탐지를 보장하지 않으며, 법적 컴플라이언스 충족을 보장하지 않습니다.

이 엔진을 감싼 OpenAI 호환 LLM 프록시 게이트웨이와 Open WebUI·Claude Code 어댑터는 저장소를 참고하세요.

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

korean_pii-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

korean_pii-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file korean_pii-0.1.0.tar.gz.

File metadata

  • Download URL: korean_pii-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for korean_pii-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b12d481554c184c0d5213a642980eff5e90bf3193e840a281ca13b55c4d522f0
MD5 a95954ee369f236dcec77c34ace139b8
BLAKE2b-256 caa648554367c6e32496b6927dad19b4726d0a7eeb298085f00a87a01f2f0aeb

See more details on using hashes here.

File details

Details for the file korean_pii-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: korean_pii-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for korean_pii-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0faae7172e8fca47f6601ff9f9e08ebe894903271cc905bd1bc86ffab5acc0
MD5 69e896b567defad30a9387e53eac1bd7
BLAKE2b-256 58aef83793319ae4ee3ef24458840e364fc178bfa342a881f328b70f37ec83f8

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