.. 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iocapture-0.1.2.tar.gz | 12.6 kB | Without provenance | Details for iocapture-0.1.2.tar.gz |
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 |
Security for iocapture 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.