# YAPF

> Configurable Python code formatter based on clang-format's algorithm

Source: https://talira.ai/catalog/yapf-d00487g3
Every listing: https://talira.ai/catalog.md

Status: YAPF looks abandoned: nothing has changed since 10 Feb 2025, and its makers haven't said it has ended. No commit to the main branch since 10 February 2025, and no reply from a Google member in issues since October 2025; other branches have only automated updates. Source: https://github.com/google/yapf

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / formatting](https://talira.ai/categories/developer-tools/formatting)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

YAPF is an Apache-2.0 Python formatter from a repository Google owns, built on the algorithm of clang-format: it calculates the best layout for the code that conforms to the configured style (pep8, google, facebook or your own settings in a style file) rather than only fixing style violations. It runs as a CLI or a library, supports Python 3.7+, and has community plugins for many editors. Its README calls it beta and says it isn't an official Google product. Development has stalled: the last commit to its main branch was in February 2025. [Black](https://talira.ai/catalog/black-mgcvtq53.md) is the widely used alternative.

## Links

- GitHub: https://github.com/google/yapf

## Problems it solves

- reformat my Python code with a style I can configure
- a Python formatter that follows the Google style guide
- keep Python formatting consistent across my team without arguing about style

## Features

- reformats code to the best layout for a chosen style, not only style fixes
- built-in pep8, google and facebook styles, or your own style file
- CLI and Python library, with community editor plugins

## Limitations

- Its README calls it beta and says it isn't an official Google product.[^1]
- Supports Python 3.7+.[^1]

## Trust

Overall: 0.20 out of 1.
Signals: maintenance 0.00, adoption 0.83, momentum 0.60, community 0.88, backing 0.55, extensibility 0.00.

- 14.0k GitHub stars
- 156 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

Warnings:

- abandoned: not maintained since 10 Feb 2025
- last commit 21 months ago

## Alternatives

- [Black](https://talira.ai/catalog/black-mgcvtq53.md): The uncompromising Python code formatter: one deterministic style, no configuration debates
- [Ruff](https://talira.ai/catalog/ruff-t1e35scd.md): An extremely fast Python linter and code formatter, written in Rust
- [autopep8](https://talira.ai/catalog/autopep8-868ephvm.md): Automatically reformats Python code to follow the PEP 8 style guide
- [Airbnb Swift Style Guide](https://talira.ai/catalog/airbnb-swift-style-guide-3arvn83b.md): Airbnb's Swift style guide, with a SwiftPM plugin that formats and lints to it

## Sources

[^1]: https://github.com/google/yapf/blob/main/README.md (checked 30 Nov 2026)
[^2]: https://github.com/google/yapf/blob/main/LICENSE (checked 30 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
