Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neat way to call bandit natively in python without relying on the CLI #626

Open
sillyfatcat opened this issue Jul 1, 2020 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@sillyfatcat
Copy link

Is your feature request related to a problem? Please describe.
I'm trying to integrate Bandit into a python tool that I have but I don't want to shell out or rely on subprocess to call bandit this way:

subprocess.Popen(['bandit', '-r', full_path], stdout=subprocess.PIPE)

Describe the solution you'd like
It would be beneficial if we could do something like:

from bandit import bandit_runner
bandit_runner(path, recursive=True, format='json')

as an example

@ericwb ericwb added the enhancement New feature or request label Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants