https://github.com/cqr-cryeye-forks/sonar-py
SonarQube is the leading tool for continuously inspecting the Code Quality and Security of your codebases, and guiding development teams during Code Reviews. Covering 27 programming languages, while pairing-up with your existing software pipeline, SonarQube provides clear remediation guidance for developers to understand and fix issues, and for teams overall to deliver better and safer software. With over 225,000 deployments helping small development teams as well as global organizations, SonarQube provides the means for all teams and companies around the world to own and impact their Code Quality and Security.
Script has this logic:
get existing project or create new if not found
Generate configuration file if needed
Run local program (sonar-scaner) for starting analyzing
Get founded issues from API
Print or save founded data
Delete project if needed
SonarQube is compatible Python versions 2.7, 3.3+.
Tested with SonarQube Community Edition 7.9.x LTS and SonarCloud Server