4 releases (2 breaking)

0.4.0 Aug 6, 2024
0.3.1 Apr 6, 2024
0.3.0 Aug 29, 2023
0.2.0 Jan 11, 2023

#446 in Development tools

Download history 9876/week @ 2024-10-20 13509/week @ 2024-10-27 4428/week @ 2024-11-03 30077/week @ 2024-11-10 30536/week @ 2024-11-17 7090/week @ 2024-11-24 24411/week @ 2024-12-01 21342/week @ 2024-12-08 17571/week @ 2024-12-15 1494/week @ 2024-12-22 3368/week @ 2024-12-29 22210/week @ 2025-01-05 21143/week @ 2025-01-12 12105/week @ 2025-01-19 12796/week @ 2025-01-26 13929/week @ 2025-02-02

60,324 downloads per month
Used in 40 crates (10 directly)

MIT and LGPL-3.0-only

425KB
12K SLoC

Rust 11K SLoC // 0.0% comments Python 2K SLoC // 0.2% comments

Python AST node definitions and utilities.

AST nodes are very similary defined like Python AST. But a few exceptions exist due to parser optimization. They can be transformed to matching Python-styled AST in reasonable cost.

[PythonArguments] is replaced by [Arguments]. The new [Arguments] type representation uses a new type [ArgWithDefault] to represent arguments with default values. See each type documentation for more details.

A few top-level sum types are renamed to human friendly names. [CmpOp] refers cmpop [UnaryOp] refers unaryop [BoolOp] refers boolop [WithItem] refers withitem [ExceptHandler] refers excepthandler

Dependencies

~8.5MB
~155K SLoC