Bandit reports a lot of "problems" without providing any direction for what kind of code to use instead. Bandit has no capability for detecting when sanitization is used, no whitelist of approved alternatives for the blacklisted methods.
For example, bandit excludes almost every known way to submit an HTTP request, such as the common urllib methods. Well, what should the programmer use instead, the requests package?
Bandit reports a lot of "problems" without providing any direction for what kind of code to use instead. Bandit has no capability for detecting when sanitization is used, no whitelist of approved alternatives for the blacklisted methods.
For example, bandit excludes almost every known way to submit an HTTP request, such as the common urllib methods. Well, what should the programmer use instead, the requests package?