tm-desensitize/tmkit/__init__.py

24 lines
616 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""tmkit: PDF 数据脱敏工具库(最小可用版)。
模块:
- splitter: PDF 分流(native / scanned 页检测)
- extractor: 原生页文字 + bbox 抽取
- detector: PII 正则识别引擎(支持自定义规则)
- redactor: bbox 坐标回写,输出脱敏后 PDF
"""
from .splitter import classify_pages
from .extractor import extract_page_words
from .detector import PIIDetector, Rule, default_detector
from .redactor import redact_pdf
__all__ = [
"classify_pages",
"extract_page_words",
"PIIDetector",
"Rule",
"default_detector",
"redact_pdf",
]
__version__ = "0.1.0"