Python static-code-analysis

Open-source Python projects categorized as static-code-analysis

Top 20 Python static-code-analysis Projects

static-code-analysis
  • bandit

    Bandit is a tool designed to find common security issues in Python code.

    Project mention: Enhance Your Project Quality with These Top Python Libraries | dev.to | 2024-03-18

    Bandit is a tool designed to find common security issues in Python code. It was developed by the OpenStack Security Project and is a great addition to any serious Python project.

  • Scout Monitoring

    Free Django app performance insights with Scout Monitoring. Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.

    Scout Monitoring logo
  • Pylint

    It's not just a linter that annoys you!

    Project mention: W1203: logging-fstring-interpolation (Solved) | dev.to | 2024-01-21

    A little introduction about pylint. Pylint is a static code analyzer, it analyses your code without actually running it. Pylint looks for potential errors, gives suggestions on coding standards that your code is not adhering to, potential places where refactoring might help, and also warnings about smelly code.

  • pytype

    A static type analyzer for Python code

    Project mention: Google Mesop: Build web apps in Python | news.ycombinator.com | 2024-06-09

    some of them; others are internal tools used at google that the company is happy to let the devs open source, but which are not official google "products". my main project when I was at google was in that category: https://github.com/google/pytype - it was not an "official google product" in that google was not officially supporting it for external users, but it's an extensively used product within google and developing it was my full time job.

  • Flake8

    flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.

    Project mention: Setting up `pre-commit` in a Django project | dev.to | 2024-06-28

    # .pre-commit-config.yaml (28.06.2024) repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-added-large-files - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: - id: isort - repo: https://github.com/psf/black rev: 24.4.2 hooks: - id: black - repo: https://github.com/pycqa/flake8 rev: 7.1.0 hooks: - id: flake8 - repo: local hooks: - id: django-check name: Run Django Check entry: python manage.py check language: system pass_filenames: false types: [python]

  • pyt

    A Static Analysis Tool for Detecting Security Vulnerabilities in Python Web Applications

  • ipyflow

    A reactive Python kernel for Jupyter notebooks.

    Project mention: Show HN: Marimo – an open-source reactive notebook for Python | news.ycombinator.com | 2024-01-12

    You're probably referring to nbgather (https://github.com/microsoft/gather), which shipped with VSCode for a while.

    nbgather used static slicing to get all the code necessary to reconstruct some cell. I actually worked with Andrew Head (original nbgather author) and Shreya Shankar to implement something similar in ipyflow (but with dynamic slicing and a not-as-nice interface): https://github.com/ipyflow/ipyflow?tab=readme-ov-file#state-...

    I have no doubt something like this will make its way into marimo's roadmap at some point :)

  • betterscan

    Code Scanning/SAST/Static Analysis/Linting using many tools/Scanners with One Report (Code, IaC) - Betterscan

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • PEP 8 Speaks

    A GitHub :octocat: app to automatically review Python code style over Pull Requests

  • astroid

    A common base representation of python source code for pylint and other projects (by pylint-dev)

  • tryceratops

    A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).

  • pyan

    Static call graph generator. The official Python 3 version. Development repo.

    Project mention: Ask HN: Anyone use a code to mindmap/flowchart tool? | news.ycombinator.com | 2024-02-24

    Are you looking for something like a call graph?

    There's pyan3 [1] which although doesn't support python 3.7+, I've still had luck with v1.0.4 which works better for me than its most recent version with python 3.11, but there can be some weird issues though depending on your code style.

    A quick search also turned up crabviz [2] which has support for more languages than just python.

    [1] https://github.com/Technologicat/pyan

    [2] https://github.com/chanhx/crabviz

  • klara

    Automatic test case generation for python and static analysis library

  • jcci

    Java code commit impact, java code change impact analysis,java代码改动影响范围分析工具,精准测试,回归测试范围划定

    Project mention: Show HN: JCCI – Java code commit impact analysis | news.ycombinator.com | 2024-05-15
  • wpbullet

    A static code analysis for WordPress (and PHP)

  • pfun

    Functional, composable, asynchronous, type-safe Python.

  • mutahunter

    Open Source Language Agnostic LLM-based mutation testing tool

    Project mention: Windows Bluescreen and Boot Loops | news.ycombinator.com | 2024-07-19

    CrowdStrike today has shown why it's absolutely crucial to test code before deployment, say no to YOLO deployments with LLM powered software testing https://github.com/codeintegrity-ai/mutahunter

  • flake8-bandit

    Automated security testing using bandit and flake8.

  • torchfix

    TorchFix - a linter for PyTorch-using code with autofix support

    Project mention: TorchFix – a linter for PyTorch-using code with autofix support | news.ycombinator.com | 2024-04-19
  • gct

    Graphical Code Tracer (GCT): Visualize code at lightning speed

  • pynalyzer

    Meta code analysis tool, bundling together multiple code analysis libs

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python static-code-analysis discussion

Log in or Post with

Python static-code-analysis related posts

  • W1203: logging-fstring-interpolation (Solved)

    1 project | dev.to | 21 Jan 2024
  • Enhancing Python Code Quality: A Comprehensive Guide to Linting with Ruff

    5 projects | dev.to | 12 Jul 2023
  • GitHub - ipyflow/ipyflow: A reactive Python kernel for Jupyter notebooks

    1 project | /r/Python | 22 May 2023
  • IPython kernel alternatives

    1 project | /r/datascience | 11 May 2023
  • IPyflow: Reactive Python Notebooks in Jupyter(Lab)

    1 project | /r/patient_hackernews | 10 May 2023
  • IPyflow: Reactive Python Notebooks in Jupyter(Lab)

    1 project | /r/hackernews | 10 May 2023
  • IPyflow: Reactive Python Notebooks in Jupyter(Lab)

    1 project | /r/hypeurls | 10 May 2023
  • A note from our sponsor - Scout Monitoring
    www.scoutapm.com | 19 Jul 2024
    Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today. Learn more →

Index

What are some of the best open-source static-code-analysis projects in Python? This list will help you:

Project Stars
1 bandit 6,164
2 Pylint 5,196
3 pytype 4,676
4 Flake8 3,349
5 pyt 2,164
6 ipyflow 1,103
7 betterscan 766
8 PEP 8 Speaks 606
9 astroid 519
10 tryceratops 423
11 pyan 321
12 klara 258
13 jcci 234
14 wpbullet 225
15 pfun 149
16 mutahunter 177
17 flake8-bandit 111
18 torchfix 64
19 gct 46
20 pynalyzer 2

Sponsored
Free Django app performance insights with Scout Monitoring
Get Scout setup in minutes, and let us sweat the small stuff. A couple lines in settings.py is all you need to start monitoring your apps. Sign up for our free tier today.
www.scoutapm.com

Did you konow that Python is
the 1st most popular programming language
based on number of metions?