python-tee
python-tee copied to clipboard
Python library to tee stderr / stdout to a file
``` with tee.StdoutTee('/tmp/testtee.log'): ... sys.stdout.write('hello\n') self.fp = open(self.filename, self.mode, self.buff) ValueError: can't have unbuffered text I/O ```
``` with tee.StdoutTee('/tmp/testtee.log'): subprocess.call('ls .', stdout=sys.stdout, shell=True) `` raises: ``` c2pwrite = stdout.fileno() AttributeError: 'StdoutTee' object has no attribute 'fileno' ``` I think better way to do this maybe just...
What is the maintenance status of the project? The project seems lacking active maintenance and I would like to propose few things: * refresh CI/CD pipelines and assure good platform...
setup.py has only: `"Programming Language :: Python :: 2.7",` See: https://github.com/algrebe/python-tee/commit/75582710ea0bc5e52614393c90803a6edcb84396#r30382013
For reference : https://docs.python.org/3/library/functions.html#open I would expect naively the API fo https://github.com/algrebe/python-tee/blob/master/tee/tee.py#L11 to be the same...
Works under Python interpreter but not compatible with stderr/stdout writes by binary modules, e.g. PyQt.