astpretty

JSON →
library 3.0.0 ·python
verified May 22, 2026

astpretty is a Python library designed to pretty-print the Abstract Syntax Tree (AST) generated by Python's standard library `ast.parse` function. It offers a more readable, indented, and detailed representation of AST nodes compared to the built-in `ast.dump`, making it useful for debugging and understanding code structure. The current version is 3.0.0, released in May 2022, requiring Python 3.8+. It's a stable, focused utility with infrequent but significant updates.

total hits 20
actors 6 distinct systems
last hit 4d ago AhrefsBot
Script
3
ByteDance
3
GPTBot
2
Search engines
1
Humans
2

top countries 🇩🇪 Germany · 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · 🇮🇳 India