9 releases

Uses new Rust 2024

new 0.0.9 Aug 13, 2026
0.0.8 Aug 7, 2026
0.0.7 Jul 30, 2026
0.0.3 Jun 25, 2026

#938 in Asynchronous

Download history 282/week @ 2026-06-19 2902/week @ 2026-06-26 4758/week @ 2026-07-03 5871/week @ 2026-07-10 16520/week @ 2026-07-17 43157/week @ 2026-07-24 45720/week @ 2026-07-31 44305/week @ 2026-08-07

151,067 downloads per month
Used in 53 crates (21 directly)

MIT license

2MB
44K SLoC

Ruff Python Parser

Ruff's Python parser is a hand-written recursive descent parser which can parse Python source code into an Abstract Syntax Tree (AST). It also utilizes the Pratt parsing technique to parse expressions with different precedence.

Try out the parser in the playground.

Contributing

Refer to the contributing guidelines to get started and GitHub issues with the parser label for issues that need help.

Versioning

This crate is an internal component of Ruff. The Rust API exposed here is unstable and will have frequent breaking changes.

This version (0.0.9) is a component of Ruff 0.16.3. The source can be found here.

See Ruff's crate versioning policy for details on versioning.

Dependencies

~7.5MB
~141K SLoC