Is there a python library for terminal commands?

Hello,
I’ve been working on a project were I need to use a terminal command through a python script to control the project.
Is there a python library to control terminal commands.
Thanks,
Vincent :slightly_smiling_face:

Hey Vincent,

There is indeed it is called the OS Library. The os.system() command can be used to run any terminal function. If you want an example I used it in the Raspberry Pi Safe Shutdown Tutorial.

1 Like

Thanks Clinton, That is just what I need. I’ll use it in a lot of projects to come! :smile:

1 Like