Python Code Analysis

Open-source Python projects categorized as Code Analysis | Edit details

Top 17 Python Code Analysis Projects

  • GitHub repo black

    The uncompromising Python code formatter

    Project mention: Using commands in a different kind of way | reddit.com/r/Python | 2022-01-17

    Instead of worrying about formatting code yourself, you could use a code formatter. You can have your IDE than automatically format your code for you via a command, or set it up to automatically format on save. One such auto formatted is black. You can install it using pip install black. You can setup your IDE (ie VSCode) to then run the formatter when you save your .py file.

  • GitHub repo YouCompleteMe

    A code-completion engine for Vim

    Project mention: Anybody using YouCompleteMe? It breaks with with python3.10.1 | reddit.com/r/archlinux | 2021-12-23
  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • GitHub repo yapf

    A formatter for Python files

    Project mention: Code Quality Tools in Python | dev.to | 2021-10-09

    YAPF (Yet Another Python Formatter) is Google's official python formatter which follows google's style guide. The documentation is easy to understand the installation and configuration for this formatter.

  • GitHub repo isort

    A Python utility / library to sort imports.

    Project mention: Modern Python setup for quality development | dev.to | 2022-01-07

    isort: isort your imports, so you don't have to.

  • GitHub repo vprof

    Visual profiler for Python

    Project mention: Scaling django: profiling your django app | dev.to | 2021-02-01

    To set it up you can refer to the official docs

  • GitHub repo pytype

    A static type analyzer for Python code

    Project mention: mypy alternatives - pytype and pyright | libhunt.com/r/mypy | 2021-10-30

    another library to check typing in python code (by google)

  • GitHub repo coala

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

    Project mention: Show HN: Semgrep App | news.ycombinator.com | 2021-10-22
  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo typeshed

    Collection of library stubs for Python, with static types

    Project mention: Comparison of Python TOML parser libraries | dev.to | 2021-12-14

    typeshed

  • GitHub repo vulture

    Find dead Python code

    Project mention: jendrikseipp/vulture Vulture - Find dead code | reddit.com/r/Python | 2021-05-05
  • GitHub repo wemake-python-styleguide

    The strictest and most opinionated python linter ever!

    Project mention: flake8-cached - a wrapper around flake8 to cache file runs | reddit.com/r/Python | 2021-05-20

    I use flake8 with [wemake-python-style-guide](https://wemake-python-stylegui.de/) plugin. It takes around 2mins to run the linter for some mid-range web apps. I have created https://github.com/jnoortheen/flake8-cached to speed up this process. I use it with Pycharm's filewatcher. It is a simple wrapper and intended to be used only during development with a fs watcher.

  • GitHub repo code2flow

    Pretty good call graphs for dynamic languages

    Project mention: Code2flow: Pretty good call graphs for dynamic languages | reddit.com/r/patient_hackernews | 2021-12-11
  • GitHub repo pyannotate

    Auto-generate PEP-484 annotations

    Project mention: What does it mean to have -> after a function | reddit.com/r/learnpython | 2021-03-14

    Indeed there are! pyannotate is probably the most popular one, authored by Guido van Rossum while he was at Dropbox.

  • GitHub repo pydeps

    Python Module Dependency graphs

    Project mention: visualizing code structure | reddit.com/r/learnpython | 2021-09-29

    pydeps

  • GitHub repo lancer

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

    Project mention: Opposite of Black | reddit.com/r/ProgrammerHumor | 2021-12-31

    Here is your present - https://github.com/LeviBorodenko/lancer

  • GitHub repo emerge

    emerge is a source code analysis tool and dependency visualizer that can be used to gather insights about source code structure, metrics, dependencies and complexity of software projects. After scanning the source code of a project it provides you an interactive web interface to explore and analyze your project by using graph structures.

    Project mention: Is it possible to generate a flow diagram from Javascript code? | reddit.com/r/vscode | 2021-09-06

    There's no VS Code extension for it AFAIK, but it's the best (and almost only) tool that I know which can do it for JavaScript code. There's also madge and emerge, in case the first one doesn't fit your needs.

  • GitHub repo tokei-pie

    Render tokei's output to interactive sunburst chart.

    Project mention: Tokei-pie: render tokei's output to interactive sunburst chart | news.ycombinator.com | 2021-11-18
  • GitHub repo smart-imports

    smart imports for Python

    Project mention: Smart-imports: automatic Mypy-friendly library imports | news.ycombinator.com | 2021-02-23
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 2022-01-17.

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 24,260
2 YouCompleteMe 23,586
3 yapf 12,246
4 isort 4,437
5 vprof 3,806
6 pytype 3,575
7 coala 3,291
8 typeshed 2,573
9 vulture 1,986
10 wemake-python-styleguide 1,730
11 code2flow 1,703
12 pyannotate 1,256
13 pydeps 910
14 lancer 155
15 emerge 115
16 tokei-pie 108
17 smart-imports 31
Find remote jobs at our new job board 99remotejobs.com. There are 29 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
OPS - Build and Run Open Source Unikernels
Quickly and easily build and deploy open source unikernels in tens of seconds. Deploy in any language to any cloud.
github.com/nanovms