Metadata-Version: 1.1
Name: OutputCatcher
Version: 0.0.2
Summary: Catches/silences stdout/stderr output.

Home-page: http://pypi.python.org/pypi/OutputCatcher/
Author: Christopher Welborn
Author-email: cj@welbornprod.com
License: UNKNOWN
Description: OutputCatcher
        =============
        
        A context manager that catches/suppresses output from ``sys.stderr`` and
        ``sys.stdout``.
        
        Usage
        -----
        
        .. code:: python
        
            from outputcatcher import StdErrCatcher, StdOutCatcher
        
            # Catching stdout
            with StdOutCatcher(safe=False, maxlength=0) as fakeout:
                print('This is a test. you shouldn\'t see it right away.')
            print('Captured stdout: {}'.format(fakeout.output))
        
            # Catching stderr
            with StdErrCatcher(safe=False, maxlength=0) as fakeerr:
                print('Testing stderr output.', file=sys.stderr)
            print('Captured stderr: {}'.format(fakeerr.output))
        
        API
        ---
        
        .. code:: python
        
            StdOutCatcher(safe=False, maxlength=0)
        
        Arguments
        ~~~~~~~~~
        
        -  ``safe``: If truthy, output is "encoded" using ``repr()``. Default:
           ``False``
        -  ``maxlength``: If non-zero, trim each ``write()`` call to
           ``maxlength``. Default: ``0``
        
Keywords: python module library 2 3 stdout stderr catch silence
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
