Metadata-Version: 2.1
Name: iocapture
Version: 0.1.2
Summary: Capture stdout, stderr easily.
Home-page: https://github.com/oinume/iocapture
Author: Kazuhiro Oinuma
Author-email: oinume@gmail.com
License: MIT
Platform: unix
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.4
Classifier: Programming Language :: Python :: 2.5
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Software Development :: Libraries :: Python Modules
License-File: LICENSE
License-File: COPYING
License-File: AUTHORS

.. -*- restructuredtext -*-

.. highlight:: python

.. image:: https://secure.travis-ci.org/oinume/iocapture.png?branch=master

Capture stdout, stderr easily with iocapture.

How to use
==========

With Python >= 2.5 ::

  import iocapture

  with iocapture.capture() as captured:
      print("hello stdout")
      print(captured.stdout)
  # >>> hello stdout

With Python < 2.5 ::

  import iocapture

  captured = iocapture.capture()
  captured.start()
  print("hello stdout")
  captured.close()
  print(captured.stdout)
  # >>> hello stdout

ChangeLog
=========

https://github.com/oinume/blob/master/changes.rst


For developers
==============
Install iocapture in develop mode. ::

  $ python setup.py develop

Install following modules for testing. ::

  $ pip install -r requirements-dev.txt

Run tests ::

  $ py.test tests


