ASTOR: Read/rewrite/write Python ASTs

JSON →
library 0.8.1 ·python maintenance
verified May 23, 2026

astor is a Python library designed for easy manipulation of Python source code via its Abstract Syntax Tree (AST). It provides functionality to round-trip an AST back to Python source, pretty-print ASTs for debugging, and offers both recursive and non-recursive tree traversal mechanisms. It focuses on generating readable code from modified ASTs. The current version is 0.8.1, released in late 2019, and its release cadence is very slow, indicating a maintenance-only status.

total hits 27
actors 8 distinct systems
last hit 1d ago AhrefsBot
ByteDance
5
GPTBot
2
Script
2
Search engines
3
Humans
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada · 🇫🇷 France