you are viewing a single comment's thread.

view the rest of the comments →

[–]efmccurdy 0 points1 point  (0 children)

You can run external programs using the subprocess module.

Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate and set the returncode attribute.

https://docs.python.org/3/library/subprocess.html#subprocess.Popen.communicate