Black

Automatic Python code formatter

psf
 
Open sourceCommand-line tool

Third-party software from public repositories. bestappfor.me does not host it, does not verify it and is not responsible for its use. Download only from the official source and check the license. Terms and disclaimer

Stars
41.9K
GitHub
Health
Solid
10 of 11 checks passed
License
MIT
Open source
Version
26.10.1
4 days ago
Category
Developer tools
Command-line tool
Language
Python

About

Black is a Python code formatter that rewrites whole files in place in one consistent style. You give up hand-formatting details and get speed, predictable results and smaller diffs, which makes code review quicker.

Few style options exist on purpose, so code looks the same across projects. After reformatting it checks that the code still means the same thing, unless you pass --fast. Install it with pip on Python 3.10 or newer, add the jupyter extra for notebooks, or download a standalone executable.

Highlights

  • Reformats whole Python files in place
  • Checks the result still means the same thing
  • Handles Jupyter notebooks with an extra

Who it's for

Good for Python developers and teams who want consistent formatting without debating style

This description was written by our editors with automated assistance, not by the developer, and has not been reviewed yet.

Why it is here

  • Code changed 3 days ago
  • New release 4 days ago

Official channels

Official channels only. We never host or repackage downloads.

Homebrew
macOS, Linux
26.10.1
brew install black
winget
Windows
26.5.1
winget install --id psf.black -e

Verified: installer URL on github.com/psf/black

GitHub release
Linux, macOS, Windows
26.10.1

You might also like

See all