Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mosquito/subprocess_helper

Abstraction over python subprocess.Popen for running subprocess asynchronous
https://github.com/mosquito/subprocess_helper

Last synced: about 2 months ago
JSON representation

Abstraction over python subprocess.Popen for running subprocess asynchronous

Awesome Lists containing this project

README

        


prc = SubProcess('cat')
test_text = [
'123\n',
'text\n',
'ololo\n',
]

prc.pipe.stdin.write(''.join(test_text))

from time import sleep
sleep(1)

assert prc.stdout == ''.join(test_text)