r/learnpython • • 9d ago

Terminal Access?

Hi, I am using Python with Jupyter Notebooks on MacBook. Is it possible to perform tasks you would normally do in the terminal within python. In my explicit case, I want to use SExtractor (Source extractor that finds light sources in image...) and then perform calculations with the created source table. But SExtractor does not have a visual interface and just works via inputs in the terminal. Is it possible to perform those taks within a python script if you know what I mean?

6 Upvotes

9 comments sorted by

View all comments

10

u/deanominecraft 9d ago

the subprocess module (part of standard library) is probably what you are looking for