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 어댑터는 저장소를 참고하세요.
Metadata
Release files for korean-pii 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| korean_pii-0.2.0.tar.gz | 15.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| korean_pii-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.7 kB
Release files / korean_pii-0.2.0.tar.gz
| Download URL | korean_pii-0.2.0.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72325644bfdaec2a7c15bdcfc22e1c6e857f3f30eced143cdc1d517174ba7fe9
|
|
BLAKE2b-256 checksum How to use checksums |
c5e511d8f6091f8c82deb4b49438e22d6c8930d85e0047910c9f4bdf3aa80525
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency logRelease files / korean_pii-0.2.0-py3-none-any.whl
| Download URL | korean_pii-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ca462cb25fc7ffbaa481f34790b9d9655a7e27f7a9966e14e0752f43aca4d05
|
|
BLAKE2b-256 checksum How to use checksums |
9c8c7cd2cf36d1f2237336a28a3366dab17d4235484ee3ef106f828547f6e3d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.
Transparency log