Python Formatter

Open-source Python projects categorized as Formatter | Edit details

Top 14 Python Formatter Projects

  • black

    The uncompromising Python code formatter

    Project mention: Did I do this right? | | 2022-05-21

    Run black on save Most modern IDE's allow this. Just google "name of your editor + black on save".

  • yapf

    A formatter for Python files

    Project mention: On 4/20 I started '100 Days of Python: Beginner to Pro' to learn my first coding language. Here is my day 11 Project: Blackjack | | 2022-05-04
  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • isort

    A Python utility / library to sort imports.

    Project mention: RegEx, Data Classes and Type Hints with Python: Learning from tweet text | | 2022-05-02

    I've found many bugs with the help of mypy since I started using it two years ago, so let's make our project a bit better. Let's apply black and isort also. Here's the script to evaluate our project:

  • autopep8

    A tool that automatically formats Python code to conform to the PEP 8 style guide.

    Project mention: autopep8 or styler equivalent in Julia | | 2022-05-01

    Is there a tool that automatically styles Julia code according to some style guide similar to autopep8 in Python ( or styler in R (

  • autoflake

    Removes unused imports and unused variables as reported by pyflakes

    Project mention: Formatting Code with Black | | 2022-02-08

    We use isort[0] for this. It even has a "black" compatible profile that line spits along black's defaults. Additionally we use autoflake[1] to remove unused import statements in place.



  • best-of-python-dev

    🏆 A ranked list of awesome python developer tools and libraries. Updated weekly.

  • docformatter

    Formats docstrings to follow PEP 257

    Project mention: [Python] No docstring formatters? | | 2022-03-31

    I can't find any decent automatic docstring formatter. The only two I stumble upon so far are docformatter and pyment, but none of them wraps long lines. I heard PyCharm has a formatter, but I would rather stick with VSCode.

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

  • 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? | | 2022-04-13
  • blue

    The slightly less uncompromising Python code formatter.

    Project mention: Django now uses black to format it's codebase | | 2022-02-08

    You would like . Its like black, but, among a few other things, defaults to using single quotes.

  • unimport

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

    Project mention: Unimport-A linter, formatter for finding and removing unused import statements. | | 2022-02-20
  • lambdex

    Write complicated anonymous functions beyond lambdas in Python.

  • ufmt

    Safe, atomic formatting with black and µsort

    Project mention: Formatting Code with Black | | 2022-02-08

    Give µsort a try instead; it's focused on providing more safety when applying sorting to large codebases, and is designed to pair well with black out of the box:

  • eng

    Translate British English into American English in text files and Python code

    Project mention: eng: Translate British English into American English in text files and Python code | | 2021-06-23
  • insta-data-styled

    A program to format your Instagram's "messages.json" into a beautiful and readable web format.

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-05-21.

Python Formatter related posts


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

Project Stars
1 black 27,339
2 yapf 12,527
3 isort 4,853
4 autopep8 4,062
5 autoflake 521
6 best-of-python-dev 484
7 docformatter 278
8 lancer 179
9 blue 160
10 unimport 134
11 lambdex 70
12 ufmt 37
13 eng 2
14 insta-data-styled 2
Find remote jobs at our new job board There are 7 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