Skip to main content
.. -*- 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

Metadata

Release files for iocapture 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iocapture 0.1.2
File Size Uploaded
iocapture-0.1.2.tar.gz 12.6 kB Details

Release files / iocapture-0.1.2.tar.gz

Download URL iocapture-0.1.2.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
86670e1808bcdcd4f70112f43da72ae766f04cd8311d1071ce6e0e0a72e37ee8
BLAKE2b-256 checksum
How to use checksums
7a9ebe3e278cec4f82b771b17a6c539a44d67081adb8042bc765776d77f3ea4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page