PyDocs

Nav

Networking and Interprocess Communication

subprocess.Process

asyncio

class (source) not WASI
  • subprocess.Process(transport, protocol, loop)
An object that wraps OS processes created by the create_subprocess_exec() and create_subprocess_shell() functions.
Members of subprocess.Process

c

communicate
Interact with process:

k

kill
Kill the child process.

p

pid
Process identification number (PID).

r

returncode
Return code of the process when it exits.

s

send_signal
Sends the signal signal to the child process.
stderr
Standard error stream (StreamReader) or None if the process was created with stderr=None.
stdin
Standard input stream (StreamWriter) or None if the process was created with stdin=None.
stdout
Standard output stream (StreamReader) or None if the process was created with stdout=None.

t

terminate
Stop the child process.

w

wait
Wait until the process exit and return the process return code.
0 Examples
No examples for asyncio/subprocess.Process.
See Also
No see-alsos for asyncio/subprocess.Process
0 Notes
No notes for subprocess.Process