Python Code Analysis

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

Top 16 Python Code Analysis Projects

  • GitHub repo black

    The uncompromising Python code formatter

    Project mention: Julia 1.7 has been released | news.ycombinator.com | 2021-11-30

    I don't understand how it's ever an actual problem and not just people being lazy / literally just starting out learning the language. Every Python-capable editor / IDE is capable of, and immediately will, notify you of any formatting issues of the sort. Python also has great, trivial to use autoformatters like black[1] that essentially all production code should use.

    What realistic scenario is there where it actually makes sense deviating from the standard the language is trying to enforce?

    [1] https://github.com/psf/black

  • GitHub repo YouCompleteMe

    A code-completion engine for Vim

    Project mention: VIM as a Python IDE | reddit.com/r/vim | 2021-10-22

    I use https://ycm-core.github.io/YouCompleteMe/ for autocomplete and https://github.com/vim-syntastic/syntastic for syntax changing as well. For my python projects this was enough to move away from VS Code. There are other plugins I use to help me code with python with vim but this should answer most of your question.

  • Nanos

    Run Linux Software Faster and Safer than Linux with Unikernels.

  • 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: Python Code Quality - Improve the quality of your Python code with linters, code formatters, and security vulnerability scanners | reddit.com/r/Python | 2021-11-07

    yaml repos: - repo: https://github.com/myint/autoflake rev: v1.4 hooks: - id: autoflake args: - --in-place - --remove-all-unused-imports - --expand-star-imports - --remove-duplicate-keys - --remove-unused-variables - repo: https://github.com/asottile/pyupgrade rev: v2.29.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/PyCQA/isort rev: 5.9.3 hooks: - id: isort - repo: https://github.com/psf/black rev: 21.10b0 hooks: - id: black args: [--safe, --quiet] - repo: https://github.com/PyCQA/flake8 rev: 4.0.1 hooks: - id: flake8 - repo: local hooks: - id: pylint name: pylint entry: pylint language: system types: [python] args: [ "-rn", "-sn", ] - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.910-1 hooks: - id: mypy name: mypy entry: mypy language: python types: [python] args: [] require_serial: true - repo: https://github.com/pre-commit/mirrors-prettier rev: v2.4.1 hooks: - id: prettier args: [--prose-wrap=always, --print-width=88]

  • 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

    Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.

  • GitHub repo typeshed

    Collection of library stubs for Python, with static types

    Project mention: On autoloading: a rant about rails | news.ycombinator.com | 2021-11-05

    Python these days is sprouting type annotations all over the show, the benefits are too good to ignore.

    And if a given library doesn't use type annotations, people will often create type stubs for it that mypy can consume.

    https://github.com/python/typeshed/tree/master/stubs

  • 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 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 code2flow

    Pretty good call graphs for dynamic languages

    Project mention: Discontinue Sourcetrail | news.ycombinator.com | 2021-09-23

    I maintain a similar (but less popular) open-source CLI that generates flow charts for dynamic languages (Python, JS, Ruby, PHP) - https://github.com/scottrogowski/code2flow/

    The thought has crossed my mind to try to actually sell it as a SaaS. But by itself, call graph visualizers are the sort of thing that you would need only once or only every once in a while. That sort of software is very difficult to monetize - as 10,000 failed productivity app companies could tell you. I don't know the details of what happened with Sourcetrail but I assume it was similar - developers might have found it useful occasionally but it's not something most developers would use daily or even monthly - so it's hard to justify a subscription.

  • GitHub repo pydeps

    Python Module Dependency graphs

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

    pydeps

  • 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 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 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 2021-11-30.

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 23,769
2 YouCompleteMe 23,470
3 yapf 12,185
4 isort 4,342
5 vprof 3,793
6 pytype 3,523
7 coala 3,273
8 typeshed 2,484
9 vulture 1,952
10 wemake-python-styleguide 1,699
11 pyannotate 1,250
12 code2flow 1,154
13 pydeps 854
14 tokei-pie 92
15 emerge 90
16 smart-imports 31
Find remote jobs at our new job board 99remotejobs.com. There are 33 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com