Metadata-Version: 2.1
Name: py-redact-datumbrain
Version: 0.0.3
Summary: A python package to redact documents by regexes.
Home-page: https://github.com/pypa/sampleproject
Author: Fahad Siddiqui
Author-email: fsdqui@gmail.com
License: UNKNOWN
Description: # py_redact
        
        Document redaction library in Python.
        
        ## Install Requirements
        
        ```
        pip install py_redact
        ```
        
        ## Example Usage
        
        ### Redact Microsoft Word Document
        
        ```python
        from py_redact.docx_redactor import DocxRedactor
        
        replace_char = '*'
        regexes = [r"""\d{3}-\d{2}-\d{4}""", r"""(([a-zA-Z0-9_\.+-]+)@([a-zA-Z0-9-]+)\.[a-zA-Z0-9-\.]+)"""]
        redactor = DocxRedactor(input_file, regexes, replace_char)
        redactor.redact(output_file_path)
        ```
        
        ### Redact Microsoft Power Point Slide
        
        ```python
        from py_redact.pptx_redactor import PptxRedactor
        
        replace_char = '*'
        regexes = [r"""\d{3}-\d{2}-\d{4}""", r"""(([a-zA-Z0-9_\.+-]+)@([a-zA-Z0-9-]+)\.[a-zA-Z0-9-\.]+)"""]
        redactor = PptxRedactor(input_file, regexes, replace_char)
        redactor.redact(output_file_path)
        ```
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
