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.

Source Distribution

unstdio-0.0.4.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file unstdio-0.0.4.tar.gz.

File metadata

  • Download URL: unstdio-0.0.4.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/2.7.16

File hashes

Hashes for unstdio-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8308a6aff4e4f50a6f3caf2d818aa91fc937fbc514f854f36bd7f268228c461d
MD5 c9369069fe76a03ad4640ec92a20e942
BLAKE2b-256 0e6f68a1973e33964f7bd8dead8ac2642b352843c0c66f5e89c3fc81bd00ce88

See more details on using hashes here.

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