Python Formatter

Open-source Python projects categorized as Formatter

Top 23 Python Formatter Projects

  1. black

    The uncompromising Python code formatter

    Project mention: Nix-Powered Python Development | dev.to | 2025-05-07

    These requirements are not too uncommon. I have seen many projects with similar setup, with alternatives such as tox instead of nox, or black and pylint instead of ruff, etc.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. yapf

    A formatter for Python files

    Project mention: YouTube asks channel owner to verify phone, permanently overwrites personal info | news.ycombinator.com | 2025-02-17

    I think they mean that just because code is under github.com/google, it doesn't make it an "official" Google thing.

    For example, yapf[0] is under the Google Github org but has the disclaimer:

    >Note YAPF is not an official Google product (experimental or otherwise), it is just code that happens to be owned by Google.

    libphonenumber doesn't have any similar disclaimer and does seem to be an "official" Google product, but it's hard to tell what Google considers official or not.

    [0] https://github.com/google/yapf

  4. isort

    A Python utility / library to sort imports.

    Project mention: Nix Flake Templates | dev.to | 2025-05-05

    Use black and isort for formatting.

  5. autopep8

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

  6. godot-gdscript-toolkit

    Independent set of GDScript tools - parser, linter, formatter, and more

    Project mention: Godot Rust CI: Handy GDScript & Rust GitHub Actions | dev.to | 2024-08-15

    The project uses a mix of Rust and GDScript, and for linting the GDScript code in GitHub actions, I use godot-gdscript-toolkit.

  7. best-of-python-dev

    πŸ† A ranked list of awesome python developer tools and libraries. Updated weekly.

  8. autoflake

    Removes unused imports and unused variables as reported by pyflakes

  9. SaaSHub

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

    SaaSHub logo
  10. mdformat

    CommonMark compliant Markdown formatter

  11. docformatter

    Formats docstrings to follow PEP 257

  12. blue

    The slightly less uncompromising Python code formatter.

  13. lancer

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

  14. unimport

    :rocket: The ultimate linter and formatter for removing unused import statements in your code. (by hakancelikdev)

  15. Formatter

    πŸ§œβ€β™€οΈ A Sublime Text plugin to beautify, minify, convert: CSS, SCSS, Sass, HTML, XML, SVG, JS,JavaScript, JSON, GraphQL, Markdown, TypeScript, Vue, Lua, YAML, Go, Perl, PHP, Python, Ruby, Rust, Haskell, Dart, Swift, Crystal, Bash, Shell, SQL, CSV, C, C++, C#, Objective-C, D, Java, Pawn, Julia, Blade, LaTeX, D2, Graphviz, Mermaid, PlantUML, Disasm..

  16. ufmt

    Safe, atomic formatting with black and Β΅sort

  17. lambdex

    Write complicated anonymous functions beyond lambdas in Python.

  18. pre-commit-hook-yamlfmt

    YAML formatter for http://pre-commit.com

  19. beancount-black

    Opinionated code formatter, just like Python's black code formatter but for Beancount

  20. promformat

    PromQL formatter

  21. jsonfmt

    A CLI tool for pretty printing, querying and format conversion JSON documents.

  22. eng

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

  23. astypes

    Python library to infer types for AST nodes. Make the most powerful Python linters and formatters!

  24. thrift-fmt

    thrift formatter tool in python, keep and align comment, patch required and list sep

  25. insta-data-styled

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

  26. 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 Formatter discussion

Log in or Post with

Python Formatter related posts

  • Ruff and Ready: Linting Before the Party

    5 projects | dev.to | 2 May 2025
  • YouTube asks channel owner to verify phone, permanently overwrites personal info

    1 project | news.ycombinator.com | 17 Feb 2025
  • Enhancing Code Quality: Adding Formatters and Linters to Code-Formatter-Advisor

    1 project | dev.to | 1 Nov 2024
  • Black – The uncompromising Python code formatter

    1 project | news.ycombinator.com | 11 Oct 2024
  • GitHub Is Down?

    1 project | news.ycombinator.com | 14 Aug 2024
  • Black: The uncompromising Python code formatter

    1 project | news.ycombinator.com | 21 Jul 2024
  • Code Reviews Do Find Bugs

    1 project | news.ycombinator.com | 3 Jul 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 17 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more β†’

Index

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

# Project Stars
1 black 40,227
2 yapf 13,890
3 isort 6,725
4 autopep8 4,613
5 godot-gdscript-toolkit 1,179
6 best-of-python-dev 1,127
7 autoflake 930
8 mdformat 578
9 docformatter 565
10 blue 401
11 lancer 259
12 unimport 244
13 Formatter 127
14 ufmt 106
15 lambdex 81
16 pre-commit-hook-yamlfmt 69
17 beancount-black 44
18 promformat 36
19 jsonfmt 13
20 eng 7
21 astypes 7
22 thrift-fmt 6
23 insta-data-styled 4

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?