Skip to main content

Capture stdout, stderr easily.

Project description

.. -*- restructuredtext -*-

.. highlight:: python

.. image::

Capture stdout, stderr easily with iocapture.

How to use

With Python >= 2.5 ::

import iocapture

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

With Python < 2.5 ::

import iocapture

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


For developers
Install iocapture in develop mode. ::

$ python develop

Install following modules for testing. ::

$ pip install -r requirements-dev.txt

Run tests ::

$ py.test tests

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for iocapture, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size iocapture-0.1.2.tar.gz (12.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page