Skip to main content

unstdio for inplace manipulation of stdio

Project description

github | PyPi | ReadTheDocs

unstdio

manipulate stdio

from unstdio.unstdio import Unstdio
from unstdio.handlers import Out
from unstdio.formats import DictFormatter
import io

with Unstdio(stdout=Out(frmt=DictFormatter())) as unstdio:
    print("{Hello World!}")  # out to Unstdio instance
print(isinstance(unstdio.stdout, io.StringIO))
print(unstdio.stdout.getvalue())  # out to system stdout

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 unstdio, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size unstdio-0.0.4.tar.gz (2.5 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