Skip to main content

Add tee like functionally to Popen

Project description

Teetime

Master Build Status

Simple tee like functionally for subprocess.Popen.

Installation

$ pip install teetime

How to use

There is some documentation in the code. Common usage is:

import sys
import teetime

with open('log.txt', 'wb') as f:
    process = teetime.popen_call(
        ['python', 'test.py'],
        stdout=(sys.stdout.buffered, f),
        stderr=(sys.stderr.buffered, f),
    )
    process.wait()

Note: pope_call blocks until

Development

All tests use are run via tox. This includes running static analysis tools, unit tests and generating documentation.

$ tox

Project details


Download files

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

Source Distribution

teetime-0.0.1.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

teetime-0.0.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page