Analysis tools logo

77 Python Static Analysis Tools

Type:
Any

What is Python?

Python is an interpreted, high-level and general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python's design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects. Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including structured…

(More info)

What are the best Python analysis tools?

125
68

mypy

  • Type: cli
9330

A static type checker that aims to combine the benefits of duck typing and static typing, frequently used with [MonkeyType](https://github.com/Instagram/MonkeyType).

38

flake8

  • Type: cli
1008

A wrapper around `pyflakes`, `pycodestyle` and `mccabe`.

38
37

pylint

  • Type: cli
3061

Looks for programming errors, helps enforcing a coding standard and sniffs for some code smells. It additionally includes `pyreverse` (an UML diagram generator) and `symilar` (a similarities checker).

21

Semgrep

  • Type: cli
2047

Free, open-source lightweight static analysis for many languages. Find and block bug variants with patterns that look like source code.

15

jedi

  • Type: cli
4607

Autocompletion/static analysis library for Python.

14

bandit

  • Type: cli
2758

A tool to find common security issues in Python code.

12

Better Code Hub

  • Type: service

Better Code Hub checks your GitHub codebase against 10 engineering guidelines devised by the authority in software quality, Software Improvement Group.

12

Coverity

  • Type: cli

Synopsys Coverity supports 20 languages and over 70 frameworks including Ruby on rails, Scala, PHP, Python, JavaScript, TypeScript, Java, Fortran, C, C++, C#, VB.NET.

11

CodeScene

  • Type: service

CodeScene is a quality visualization tool for software. Prioritize technical debt, detect delivery risks, and measure organizational aspects. Fully automated.

9

DeepCode

  • Type: service

DeepCode finds bugs, security vulnerabilities, performance and API issues based on AI. DeepCode's speed of analysis allow us to analyse your code in real time and deliver results when you hit the save button in your IDE. Supported languages are Java, C/C++, JavaScript, Python, and TypeScript. Integrations with GitHub, BitBucket and Gitlab.

8

DeepSource

  • Type: service

In-depth static analysis to find issues in verticals of bug risks, security, anti-patterns, performance, documentation and style. Native integrations with GitHub, GitLab and Bitbucket. Less than 5% false positives.

8

wemake-python-styleguide

  • Type: cli
1206

The strictest and most opinionated python linter ever.

6

pycodestyle

  • Type: cli
4176

(Formerly `pep8`) Check Python code against some of the style conventions in PEP 8.

5

pyright

  • Type: cli
5859

Static type checker for Python, created to address gaps in existing tools like mypy.

5

unimport

  • Type: cli
59

A linter, formatter for finding and removing unused import statements.

4

pydocstyle

  • Type: cli
719

Check compliance with Python docstring conventions.

4

vulture

  • Type: cli
1067

Find unused classes, functions and variables in Python code.

3

pyflakes

  • Type: cli
942

Check Python source files for errors.

3

Pysa

  • Type: cli
4916

A tool based on Facebook's pyre-check to identify potential security issues in Python code identified with taint analysis.

2

Atom-Beautify

  • Type: ide-plugin
1462

Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom editor.

2

pyre-check

  • Type: cli
4916

A fast, scalable type checker for large Python codebases.

2

pytype

  • Type: cli
2976

A static type analyzer for Python code.

2

Unibeautify

  • Type: cli
  • Type: service
455

Universal code beautifier with a GitHub app. Supports HTML, CSS, JavaScript, TypeScript, JSX, Vue, C++, Go, Objective-C, Java, Python, PHP, GraphQL, Markdown, and more.

1

Dlint

  • Type: cli
46

A tool for ensuring Python code is secure.

1

mccabe

  • Type: cli
353

Check McCabe complexity.

1

prospector

  • Type: cli
1326

A wrapper around `pylint`, `pep8`, `mccabe` and others.

1

pyroma

  • Type: cli
99

Rate how well a Python project complies with the best practices of the Python packaging ecosystem, and list issues that could be improved.

1

todocheck

  • Type: cli
296

Linter for integrating annotated TODOs with your issue trackers

1

xenon

  • Type: cli
168

Monitor code complexity using [`radon`](https://github.com/rubik/radon).

0

ApplicationInspector

  • Type: cli
3706

Creates reports of over 400 rule patterns for feature detection (e.g. the use of cryptography or version control in apps).

0

bellybutton

  • Type: cli
187

A linting engine supporting custom project-specific rules.

0

Cobra

  • Type: cli

Structural source code analyzer by NASA's Jet Propulsion Laboratory.

0

Code Inspector

  • Type: service

Code quality and technical debt management platform that supports 10+ languages.

0

Codeac

  • Type: service

Automated code review tool integrates with GitHub, Bitbucket and GitLab (even self-hosted). Available for JavaScript, TypeScript, Python, Ruby, Go, PHP, Java, Docker, and more. (open-source free)

0

CodeFlow

  • Type: service

Automated code analysis tool to deal with technical depth. Integrates with Bitbucket and Gitlab. (free for Open Source Projects)

0

codeql

  • Type: service
  • Type: ide-plugin

Deep code analysis - semantic queries and dataflow for several languages with VSCode plugin support.

0

cohesion

  • Type: cli
119

A tool for measuring Python class cohesion.

0

DevSkim

  • Type: ide-plugin
496

Regex-based static analysis tool for Visual Studio, VS Code, and Sublime Text - C/C++, C#, PHP, ASP, Python, Ruby, Java, and others.

0

fixit

  • Type: cli
188

A framework for creating lint rules and corresponding auto-fixes for source code.

0

Fortify

  • Type: ide-plugin

A commercial static analysis platform that supports the scanning of C/C++, C#, VB.NET, VB6, ABAP/BSP, ActionScript, Apex, ASP.NET, Classic ASP, VB Script, Cobol, ColdFusion, HTML, Java, JS, JSP, MXML/Flex, Objective-C, PHP, PL/SQL, T-SQL, Python (2.6, 2.7), Ruby (1.9.3), Swift, Scala, VB, and XML.

0

graudit

  • Type: cli
674

Grep rough audit - source code auditing tool.

0

imhotep

  • Type: cli
213

Comment on commits coming into your repository and check for syntactic errors and general lint warnings.

0

include-gardener

  • Type: cli
51

A multi-language static analyzer for C/C++/Obj-C/Python/Ruby to create a graph (in dot or graphml format) which shows all `#include` relations of a given set of files.

0

InspectorTiger

  • Type: cli
73

IT, Inspector Tiger, is a modern python code review tool / framework. It comes with bunch of pre-defined handlers which warns you about improvements and possible bugs. Beside these handlers, you can write your own or use community ones.

0

Kiuwan

  • Type: service

Identify and remediate cyber threats in a blazingly fast, collaborative environment, with seamless integration in your SDLC. Python, C\C++, Java, C#, PHP and more.

0

LGTM.com

  • Type: service

Deep code analysis for GitHub and Bitbucket to find security vulnerabilities and critical code quality issues (using Semmle QL). Automatic code review for pull requests; free for public repositories.

0

linty fresh

  • Type: cli
179

Parse lint errors and report them to Github as comments on a pull request.

0

Lumnify

  • Type: cli

Benchmark against thousands of projects, and analyse code for structural quality with focus on maintainability.

0

multilint

  • Type: cli
29

A wrapper around `flake8`, `isort` and `modernize`.

0

pylama

  • Type: cli
736

Code audit tool for Python and JavaScript. Wraps pycodestyle, pydocstyle, PyFlakes, Mccabe, Pylint, and more

0

radon

  • Type: cli
1147

A Python tool that computes various metrics from the source code.

0

relint

  • Type: cli
23

A static file linter that allows you to write custom rules using regular expressions (RegEx).

0

Scrutinizer

  • Type: service

A proprietary code quality checker that can be integrated with GitHub.

0

ShiftLeft Scan

  • Type: cli
  • Type: service
139

Scan is a free open-source DevSecOps platform for detecting security issues in source code and dependencies. It supports a broad range of languages and CI/CD pipelines.

0

ShiftLeft

  • Type: service

Identify vulnerabilities that are unique to your code base before they reach production. Leverages the Code Property Graph (CPG) to run its analyses concurrently in a single graph of graphs. Automatically finds business logic flaws in dev like hardcoded secrets and logic bombs

0

Sider

  • Type: service

An automated code reviewing tool. Improving developers' productivity.

0

SmartDec Scanner

  • Type: cli

SAST tool which is capable of identifying vulnerabilities and undocumented features. The analyzer scans the source code and executables without debug info (i.e. binaries). Supports: Java/Scala/Kotlin, PHP, C#, JavaScript, TypeScript, VBScript, HTML5, Python, Perl, C/C++, Objective-C/Swift, PL/SQL, T-SQL, ABAP, 1C, Apex, Go, Ruby, Groovy, Delphi, VBA, Visual Basic 6, Solidity, Vyper, COBOL.

0

Snyk

  • Type: service

Vulnerability scanner for dependencies of node.js apps (free for Open Source Projects).

0

SonarCloud

  • Type: service

Multi-language cloud-based static code analysis. History, trends, security hot-spots, pull request analysis and more. Free for open source.

0

wily

  • Type: cli
614

A command-line tool for archiving, exploring and graphing the complexity of Python source code.

-1

ale

  • Type: ide-plugin
10099

Asynchronous Lint Engine for Vim and NeoVim with support for many languages.

-1

APPscreener

  • Type: cli

Static code analysis for binary and source code - Java/Scala, PHP, Javascript, C#, PL/SQL, Python, T-SQL, C/C++, ObjectiveC/Swift, Visual Basic 6.0, Ruby, Delphi, ABAP, HTML5 and Solidity.

-1

CAST Highlight

  • Type: cli

Commercial Static Code Analysis which runs locally, but uploads the results to its cloud for presentation.

-1

ciocheck

  • Type: cli
21

Linter, formatter and test suite helper. As a linter, it is a wrapper around `pep8`, `pydocstyle`, `flake8`, and `pylint`.

-1

Synopsys

  • Type: cli

A commercial static analysis platform that allows for scanning of multiple languages (C/C++, Android, C#, Java, JS, PHP, Python, Node.JS, Ruby, Fortran, and Swift).

-2

Embold

  • Type: service

Intelligent software analytics platform that identifies design issues, code issues, duplication and metrics. Supports Java, C, C++, C#, JavaScript, TypeScript, Python, Go, Kotlin and more.

Deprecated/unmaintained tools

1

PyT - Python Taint

  • Type: cli
1991

A static analysis tool for detecting security vulnerabilities in Python web applications.

0

Landscape

  • Type: service

Static code analysis for Python.

0

pfff

  • Type: cli
64

Facebook's tools for code analysis, visualizations, or style-preserving source transformation for many languages.

0

py-find-injection

  • Type: cli
108

Find SQL injection vulnerabilities in Python code.

0

QuantifiedCode

  • Type: service
104

Automated code review & repair. It helps you to keep track of issues and metrics in your software projects, and can be easily extended to support new types of analyses.

❤️ Sponsor this project

We are currently looking for partners who want to sponsor hosting and development of the project.

Check out our Github Sponsors page here

Missing an entry? Please let us know.