Metadata-Version: 1.1
Name: masecret
Version: 0.1.0
Summary: A command to mask secret information of images using OCR
Home-page: https://github.com/orangain/masecret
Author: orangain
Author-email: orangain@gmail.com
License: MIT
Description: 
        masecret
        ========
        
        A command to mask secret information of images using OCR.
        
        Prerequisite
        ------------
        
        -  Python 3.3+
        -  `Tesseract <https://github.com/tesseract-ocr/tesseract>`__
        -  Languages for OCR (can be set by ``--lang``, default is ``eng+jpn``)
           must be available.
        
        Installation
        ------------
        
        ::
        
            $ pip3 install masecret
        
        You may need ``sudo``.
        
        masecret depends on `pyocr <https://github.com/jflesch/pyocr>`__ and
        `Pillow <https://pillow.readthedocs.io/>`__. If you fail to install
        Pillow, please see the installation instruction of Pillow.
        
        Usage
        -----
        
        Preparation
        ~~~~~~~~~~~
        
        Create a ``SECRETS.txt`` in a current directory. Content of the file is
        regular expression patterns which match secret information you want to
        mask. You can includes multiple patterns using multi lines.
        
        Example content of ``SECRETS.txt`` to mask AWS account number:
        
        ::
        
            [-\d]{12,}
        
        Mask Secret
        ~~~~~~~~~~~
        
        Mask a single file:
        
        ::
        
            $ masecret original.png masked.png
        
        Mask multiple files (output directory must exist):
        
        ::
        
            $ masecret original1.png original2.png ... masked_images/
        
        
Keywords: ocr image screenshot secret mask
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Utilities
