Python Code Analysis

Open-source Python projects categorized as Code Analysis

Top 21 Python Code Analysis Projects

  • black

    The uncompromising Python code formatter

    Project mention: Ruff: A new, fast and correct Python checker/linter | reddit.com/r/Python | 2023-01-26

    Here are insights about flake8, black, and mypy and the amount of work that went into mypy seems … just massive?!

  • YouCompleteMe

    A code-completion engine for Vim

    Project mention: run multiple python versions in F37 | reddit.com/r/Fedora | 2023-01-20
  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • yapf

    A formatter for Python files

    Project mention: Enable hyphenation only for code blocks | reddit.com/r/LaTeX | 2023-01-06

    Only as recommendation: If the lines of the source code (here: you C code you aim to document) are kept short, in manageable bytes (similar to entries parser.add_argument in Clark's "Tiny Python Projects", example seldomly pass beyond the frequently recommended threshold of 80 characters/line), reporting with listings becomes easier (equally, the reading of the difference logs/views by git and vimdiff), than with lines of say 120 characters per line. Though we no longer are constrained to 80 characters per line by terminals/screens and punch cards (when Fortran still was FORTRAN), this is a reason e.g., yapf for Python allows you to choose between 4 spaces/indentation (PEP8 style), or 2 spaces/indentation (Google style).

  • isort

    A Python utility / library to sort imports.

    Project mention: How I start every new Python backend API project | dev.to | 2023-01-19

    isort

  • pytype

    A static type analyzer for Python code

    Project mention: The Python Paradox | news.ycombinator.com | 2023-01-26

    Check out https://github.com/google/pytype

  • vprof

    Visual profiler for Python

  • coala

    coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.

    Project mention: Level up your Python today with open-source contributions | dev.to | 2022-05-25

    Read the contributing guidelines on GitHub

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • typeshed

    Collection of library stubs for Python, with static types

    Project mention: When the client's management is happy but their dev team is a pain | reddit.com/r/ProgrammerHumor | 2023-01-31

    Here's the tensorflow type stubs on typeshed. https://github.com/python/typeshed/tree/main/stubs/tensorflow

  • code2flow

    Pretty good call graphs for dynamic languages

    Project mention: Recommendation for visually mapping script logic? | reddit.com/r/AskProgramming | 2022-07-08

    Look at call graphs, this might help you get started: https://github.com/scottrogowski/code2flow

  • vulture

    Find dead Python code

  • wemake-python-styleguide

    The strictest and most opinionated python linter ever!

    Project mention: Is my new Python library good? | reddit.com/r/learnprogramming | 2022-09-21

    Anyway, create a venv, pip install https://github.com/wemake-services/wemake-python-styleguide and Black, format your code and check it with flake8.

  • ycmd

    A code-completion & code-comprehension server

    Project mention: Tip: YcmCompleter's FixIt allows performing refactorings unrelated to diagnostics | reddit.com/r/vim | 2022-12-09

    Funny thing, I have totally found it out by accident, while looking through ycmd PRs and issues to check whether it supports LSP CodeActions provided by clangd. In this PR, which doesn't seem really ground-breaking, the maintainer mentioned that the code actions will be exposed via FixIt subcommand. I immediately switched to Vim to check whether it actually works, and BAH! There it is!

  • pyannotate

    Auto-generate PEP-484 annotations

  • pydeps

    Python Module Dependency graphs

    Project mention: Is there a way to find Python libraries that depends on a library? | reddit.com/r/learnpython | 2022-11-30
  • git-fame

    Pretty-print `git` repository collaborators sorted by contributions.

    Project mention: What method and language do you use to tell students their group ratted them out that they didn't participate in a project and aren't receiving credit for it? | reddit.com/r/Professors | 2022-08-11

    I use git-fame to assess their contributions and I use it at the mid-point of the project as well as at the end, pasting the results into the feedback they get.

  • lancer

    Turn your python code into a hideous mess. Ever heard of Black? This is the opposite.

    Project mention: how to "hide" away part of my python code? | reddit.com/r/learnpython | 2022-04-13
  • tokei-pie

    Render tokei's output to interactive sunburst chart.

  • chainjacking

    Find which of your direct GitHub dependencies is susceptible to RepoJacking attacks

  • smart-imports

    smart imports for Python

  • cookiecutter-cpp-project

    A cookiecutter for a C++ Project with lots of configuration options

    Project mention: Is there a rookie guide on how to set up a C++ project with testing? | reddit.com/r/cpp | 2022-09-21

    This will get you setup quite quickly with almost everything (cmake, testing, ci, python bindings, doxygen, among other things) and no much thinking: https://github.com/ssciwr/cookiecutter-cpp-project

  • vast

    Building and visualising Abstract Syntax Trees for Python code. (by JamesPhillipsUK)

  • SaaSHub

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

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). The latest post mention was on 2023-01-31.

Python Code Analysis related posts

Index

What are some of the best open-source Code Analysis projects in Python? This list will help you:

Project Stars
1 black 31,140
2 YouCompleteMe 24,553
3 yapf 13,034
4 isort 5,546
5 pytype 4,086
6 vprof 3,880
7 coala 3,419
8 typeshed 3,387
9 code2flow 3,023
10 vulture 2,399
11 wemake-python-styleguide 2,130
12 ycmd 1,622
13 pyannotate 1,369
14 pydeps 1,210
15 git-fame 432
16 lancer 234
17 tokei-pie 134
18 chainjacking 37
19 smart-imports 36
20 cookiecutter-cpp-project 32
21 vast 3
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com