I'm using the following package: https://github.com/PyCQA/bandit to perform some static analysis on runtime. Currently I do the following:
subprocess.Popen(['bandit', '-r', full_path], stdout=subprocess.PIPE)
But I'm trying to move away from using subprocess.Popen, is it possible to natively call bandit in python? Something like
from bandit import ...
run_bandit(directory, recursive=True)