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.2.0.tar.gz (15.2 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.2.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: korean_pii-0.2.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for korean_pii-0.2.0.tar.gz
Algorithm Hash digest
SHA256 72325644bfdaec2a7c15bdcfc22e1c6e857f3f30eced143cdc1d517174ba7fe9
MD5 5d346aef59ce4162d92111625ea3c54f
BLAKE2b-256 c5e511d8f6091f8c82deb4b49438e22d6c8930d85e0047910c9f4bdf3aa80525

See more details on using hashes here.

Provenance

The following attestation bundles were made for korean_pii-0.2.0.tar.gz:

Publisher: release.yml on asdqweasdzxcasd/korean-pii-gateway

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: korean_pii-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for korean_pii-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ca462cb25fc7ffbaa481f34790b9d9655a7e27f7a9966e14e0752f43aca4d05
MD5 48f4659a27deae2bd88882081c06ed4a
BLAKE2b-256 9c8c7cd2cf36d1f2237336a28a3366dab17d4235484ee3ef106f828547f6e3d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for korean_pii-0.2.0-py3-none-any.whl:

Publisher: release.yml on asdqweasdzxcasd/korean-pii-gateway

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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