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

#515 in Development tools

Download history 3052/week @ 2024-07-16 5637/week @ 2024-07-23 5172/week @ 2024-07-30 6366/week @ 2024-08-06 8090/week @ 2024-08-13 12127/week @ 2024-08-20 13148/week @ 2024-08-27 10709/week @ 2024-09-03 9823/week @ 2024-09-10 9765/week @ 2024-09-17 12163/week @ 2024-09-24 16638/week @ 2024-10-01 4905/week @ 2024-10-08 16442/week @ 2024-10-15 10491/week @ 2024-10-22 12855/week @ 2024-10-29

45,200 downloads per month
Used in 30 crates (9 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
~152K SLoC