Metadata-Version: 2.1
Name: subprocesshidden
Version: 0.10
Summary: Executes subprocesses without console (Windows), reads stdout/stderr
Home-page: https://github.com/hansalemaos/subprocesshidden
Author: Johannes Fischer
Author-email: <aulasparticularesdealemaosp@gmail.com>
License: MIT
Keywords: subprocess,hidden
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Editors :: Text Processing
Classifier: Topic :: Text Processing :: General
Classifier: Topic :: Text Processing :: Indexing
Classifier: Topic :: Text Processing :: Filters
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
License-File: LICENSE.rst


# Executes subprocesses without console (Windows), reads stdout/stderr



### pip install subprocesshidden



```python



from subprocesshidden import Popen

import os



os.chdir("c:\\windows")

p1 = Popen("ls -la", timeout=1, shell=True)



p2 = Popen("dir /s", timeout=3, shell=True) # tasks are killed with taskkill



p3 = Popen("dir /xsd")





print(p1.stdout_lines)

print(p2.stdout_lines)

print(p3.stdout_lines)

print(p3.stderr_lines)

print(p2.stderr_lines)

print(p1.stderr_lines)



print(p1.stdout)

print(p2.stdout)

print(p3.stdout)

print(p3.stderr)

print(p2.stderr)

print(p1.stderr)





```

