Skip to main content

unstdio for inplace manipulation of stdio

Project description

github | PyPi | ReadTheDocs


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.3
Filename, size File type Python version Upload date Hashes
Filename, size unstdio-0.0.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page