Metadata-Version: 2.1
Name: stdget
Version: 1.1.2
Summary: A library to capture sys.stdout and -err
Home-page: https://github.com/CenTdemeern1/stdget
Author: CenTdemeern1
Author-email: timo.herngreen@gmail.com
License: UNKNOWN
Description: ﻿># StdGet
        >StdGet is a small python 2 and 3 compatible library that doesn't require any modules to work.
        >
        >What does it do?
        >
        >StdGet's purpose is to be a way to capture the StdOut (Standard Output) and StdErr (Standard Error Output).
        >
        >Sounds great! How does it work and how do I use it?
        >
        >>How to use it:
        >>
        >>First, let's import StdGet:
        > `import stdget` 
        > Then, let's say we want to capture the StdOut:
        > `stdget.startstdoutcapture()`
        > And you're done!
        > "But how do I get the information it captures?"
        > `stdget.stdouthook` will give you a list.
        > You can just do `stdget.stdouthook=[]` to empty it.
        > 
        > >How it works:
        > >
        > >What it does is it adds a layer on top of the original 'sys.stdout.write' that actually 'takes' the data and copies it into the 'stdget.stdouthook' list.
        > It works outside of the module's layer because the sys.stdout / -in and -err are global all across the session.
        > That's also why you can just do `import stdget` and you don't have to do `from stdget import *` (it doesn't matter).
        
        
Keywords: sys std stdout stderr get stdget sys.stdout sys.stderr capture
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
